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

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -