Hi,
I have many files that contain \n as part of the text, like this:
What I need to do is find the instances of \n and place tags around them. But I am having real problems differentiating between the written \n and the end of line.
I've tried as regex and non-regex but neither seem to work.
It's easy enough to do ordinarily, but when I put it in a script it all goes wrong!
This is what I'm trying (there is obviously other text in the search too).
I've tried escaping the \n and I've tried \n followed by not an end of line. Both of which sounds like good ideas but my implementation must be wrong because they don't work.
Any suggestions?
Thanks
I have many files that contain \n as part of the text, like this:
Code: Select all
Post-trigger has started.\nSnapshot Setup popup will be closed.
I've tried as regex and non-regex but neither seem to work.
It's easy enough to do ordinarily, but when I put it in a script it all goes wrong!
This is what I'm trying (there is obviously other text in the search too).
Code: Select all
UltraEdit.perlReOn();
UltraEdit.frInFiles.regExp = true;
UltraEdit.frInFiles.replace("(PGM-FI|jpg|png|\n)", "<ut Style='internal'>$1</ut>");
Any suggestions?
Thanks