Print Thread
Regex .......
#40077 05/09/11 07:45 PM
Joined: Mar 2007
Posts: 131
California, USA
Sachin Offline OP
Member
OP Offline
Member
Joined: Mar 2007
Posts: 131
California, USA
I saw some older topics about regex, but none of them really answered my concern.

I have a pretty large script that has a + at the end of the line. When I use REGEX and do a search replace:
Find: +\r\n
Replace: \r\n

It literally puts a "\r\n" in place of the + sign. Shouldn't it replace the + & CR with a new CR?

Tried to use a macro for the same based on Scott's suggestion in Editor: Search and replace TRIM function

But the macro does not record Find Next (Ctrl L). Am I missing something?

Any suggestions?

Thanks,


~Sachin.
Re: Regex .......
Sachin #40080 05/10/11 11:24 AM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
It is indeed not possible to use regular expressions in the replacement text. This is on the list of enhancement requests. The Macro / Find Next will be fixed.


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.045s Queries: 15 (0.013s) Memory: 2.4961 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-05-03 19:24:08 UTC
Valid HTML 5 and Valid CSS