By the looks of it {he thinks} he knows what he’s doing.

TextPad Regular Expression

Had to write this today to find and replace phone numbers in a file (luckily all the same format), but TextPad makes you use a little different syntax for their regular expressions.

Find:
[[:digit:]]\{3\}-[[:digit:]]\{3\}-[[:digit:]]\{4\}

Replace:
,&

Now it finds any phone number with the format ###-###-#### and places a comma in front of it. I needed the comma for a CSV file.

Thought it may be useful for someone working in TextPad and trying to do regex searches in it.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a comment for: "TextPad Regular Expression"

You must be logged in to post a comment.