Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
After rx replacement, becomes two lines
#2
Code:
Copy      Help
_s.replacerx("(?m)^(\s*)Debug.Print (.+) & ([^\r\n])$", "$1_s.form($2, $3); out _s")
;or
_s.replacerx("(?m)^(\s*)Debug.Print (.+) & ([^[]])$", "$1_s.form($2, $3); out _s")
;or
_s.replacerx("(?m)^(\s*)Debug.Print (.+) & (.+?)$", "$1_s.form($2, $3); out _s")

In the times when regex was added to QM, in PCRE . matched any character except \n. Later PCRE added option "any character except \n or \r", which now used in LA.


Messages In This Thread
RE: After rx replacement, becomes two lines - by Gintaras - 07-10-2023, 04:40 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)