losamike.blogg.se

Notepad++ regex loop
Notepad++ regex loop











notepad++ regex loop

I don't think there is any way simply to find "a space that comes after 5 digits" so you can just replace the space without touching the digits. Then it replaces all that with the same group of digits followed by a tab. So the search and replace command looks for one or more digits, followed by a space.

notepad++ regex loop

\1 is the first search expression, the part between parentheses above (one or more digits) is just a space character (you could leave out the brackets, but then no one would be able to see it on this web page :-) \) is another "escaped parenthesis" to mark the end of the first search expression

notepad++ regex loop

+ means one or more digits (not just 5-digit zip codes) \( is an "escaped parenthesis" and it marks the beginning of the first search expression, i.e., the five digits Replace space after 5-digit zip code, at the beginning of each line ^\(+\) To use TextPad's default settings for regular expressions, you have to "escape" the opening and closing parentheses: TextPad always had the ability to use posix notation, but you have to change the settings in a different dialog box.













Notepad++ regex loop