notepad++ - how to use regex to add leading zero -


this question has answer here:

question - shortest form of regex add leading 0 found pattern?

i want add leading 0 number matches regex pattern

[(][0-9][0-9][0-9][0-9][-][0-9][0-9][0-9][0-9][-][0-9][0-9][)]

i using notepad++.

in notepad++ regex replace, use $n represent nth capture group replacement:

search for: [(]([0-9][0-9][0-9][0-9][-][0-9][0-9][0-9][0-9][-][0-9][0-9])[)] replace with: (0$1) 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -