^ when used in the Find when Regular Expression is checked fails on Replace all, Replace works as expected. Error message is "The regular expression to search is formed badly".
Find ^
Replace xzxzxz
Clicking on replace will enter 'xzxzxz' at the beginning of the first line. Clicking on replace again will enter 'xzxzxz' at the beginning of the next line.
I am attempting to change all the lines at once with the "Replace All" button, but it is failing.
Thanks
Bruce
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your interest and answers. My desired solution is still not working out for me. A couple of my colleagues are using different editors that are working the way that I expected Notepad++ to work, Crimson for one. It sounds like the problem is related to the initial design, which was based on Scintilla. Since I have a solution that involves opening the file in another text editor and making changes their, it doesn't seem like it's worth my time to continue to try and find a solution using only Notepad++.
Bruce
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I didn't see this message before posting the original one, but anyway... you want to take a look at the post below[1], there you will find a workaround for this (and the possible explanation of why it failed before).
Hello,
^ when used in the Find when Regular Expression is checked fails on Replace all, Replace works as expected. Error message is "The regular expression to search is formed badly".
Find ^
Replace xzxzxz
Clicking on replace will enter 'xzxzxz' at the beginning of the first line. Clicking on replace again will enter 'xzxzxz' at the beginning of the next line.
I am attempting to change all the lines at once with the "Replace All" button, but it is failing.
Thanks
Bruce
Ralph/pshute,
Thanks for your interest and answers. My desired solution is still not working out for me. A couple of my colleagues are using different editors that are working the way that I expected Notepad++ to work, Crimson for one. It sounds like the problem is related to the initial design, which was based on Scintilla. Since I have a solution that involves opening the file in another text editor and making changes their, it doesn't seem like it's worth my time to continue to try and find a solution using only Notepad++.
Bruce
Hi again, Bruce.
I didn't see this message before posting the original one, but anyway... you want to take a look at the post below[1], there you will find a workaround for this (and the possible explanation of why it failed before).
Ralph.
[1] http://sourceforge.net/forum/message.php?msg_id=4320108
I would use the advanced search/replace (control+R) wihtout regex, using control+M to add a newline to your search and replace strings - see http://notepad-plus.sourceforge.net/uk/newlineFindReplace-HOWTO.php for all your options.
It won't be able to match the start of the first line, of course, because it matches newline, not start of line.