Example for searching and replacing newlines wanted |
|
Hi all,
I'd like to know, how to insert newline chars in some code, using the search/replace dialog. I've read, that it is possible via regex: http://forum.nusphere.com/search-and-replace-special-characters-t4469.html phpEd chm > Replace Maybe, someone could supply a solution for this example: Example ------------------------------------------------------ Insert a newline char after each ";" in the string "Foo;Bar;Baz;". The result would obviously be Foo; Bar; Baz; First try My input in the search/replace dialog ------------------------------------------------------ Text to find: ; Replace with: ;\n [x] Regular expressions [x] Global scope Result: Foo;\nBar;\nBaz;\n Second try My input in the search/replace dialog ------------------------------------------------------ Text to find: ; Replace with: ;\n [ ] Regular expressions [x] Global scope Result: Foo;\nBar;\nBaz;\n No success so far. These resources weren't helpful for me: ----------------------------------------------------------- 1. phpEd chm > Replace (No examples) 2. phpEd chm > Regular expressions (No examples) 3. http://forum.nusphere.com/search-and-replace-special-characters-t4469.html PhpEd-Version: ----------------------------------------------------------- 5.9.5 (Build 5966) / Windows XP Have a nice weekend! Greetings from germany uwe |
||||||||||||
|
|
Hi mdegtyarev,
it works! Thanks a lot! It's easy, obvious and intuitive Greetings from Southern Germany uwe |
||||||||||||
|
Example for searching and replacing newlines wanted |
|
||
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