Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
multiline help
#1
ok maybe im not understanding the whole "multiline" regxp thing but isn't it supposed to find stuff separated by a carriage return?

a="Lorem ipsum dolor sit amet
, consloremetetur sadipscing"

if i search for "amet," shouldn't it find it and replace it with something?

thanks.
An old blog on QM coding and automation.

The Macro Hook
#2
For carriage return, use \r\n. In macro also can use []. In html, crlf is interpreted as space, so better to use \s+

One thing that may confuse is "multiline" flag or (?m). It just changes behavior of ^ and $ metacharacters.
#3
ahhhh...so it's really a modifier; got it, thanks.
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 1 Guest(s)