Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RegEx Dialog
#1
i've created a dialog that does regex search and replace but i'm having problems having it insert things like newline character(s), tabs, etc. how can i do this?

thanks.


Code:
Copy      Help
ClearOutput
_s.getclip
_s.replacerx("\r\n\r\n" "\r\n");;doesn't work
_s.replacerx("\r\n\r\n" "[10]");;doesn't work
_s.replacerx("(\r\n)(\r\n)(\1)" "");;doesn't work

out _s
A new blog on QM coding and automation.

The Macro Hook
#2
Nvrmind...I got it now

Code:
Copy      Help
_s.replacerx("(\r\n){2,}" "$1")
A new blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 1 Guest(s)