Search/Replace with Regexp |
Guru master
|
I could never find a metacharacter that would work for \t or \n in the replacement string, but there is another way.
Tick multiline search/replace and regular expression. Then search for FOO(.+) and replace with FOO<enter><tab>\1 but press the Enter key where I show <enter> and Tab key for <tab> Where you are in multiline mode, those Enter and Tab characters will be entered directly into text. Bear in mind that if the PhpED editor is not set to Use tab character then a tab will be entered into the editor window as spaces. |
||||||||||||
|
|
Ah! I was used to using $1, $2... for regexp variables, I wouldn't have thought to try \1, \2...
That will help immensely! I guess I can use several regexp/nonregexp search and replace oparations to accomplish what I want, just not all in one go. Now that I know I can do variables, that really helps. Thanks, plugnplay |
||||||||||||
|
|
I thought I can do variables! Thanks for this one!
|
||||||||||||
|
Search/Replace with Regexp |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by