replaceText problem

Dr. Hawkins dochawk at gmail.com
Sat Jan 3 16:44:49 EST 2015


On Sat, Jan 3, 2015 at 12:23 PM, Peter Haworth <pete at lcsql.com> wrote:

> I had to include "(?m)" at the start of the regex in order to to make it
> work in multiline mode.
>
> The "^" at the start of my regex means "start of line" but unless you are
> in multiline mode, line breaks aren't recognized by regex.
>

But how can your example have a linebreak? excessive comment after the
breakpoint

I haven't had to deal with multi-line regex in several years, but recall it
being like a trip to the dentist.



> Doc Hawkins: As others have pointed out, you could have an if statement
> with breakpoint on the same line or another statement before it separated
> by a semicolon. However, this code will only ever examine my own scripts so
> I can make sure that breakpoints only ever appear on a line on their own.
>

That's what I was thinking in your case.



-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462



More information about the use-livecode mailing list