Re: Small regexp question


#1

Stefan M. said:

You can use

/myregexp/m

but I’m not sure where this is documented.

Which is exactly what I was after, thanks.

The list of characters that you can slap on to the end are (cribbed from
the Nutshell):

i => case-insensitive
o => substitute only once.
x => ignores whitespace so that you can put comments in to a regex.
m => matches over multiple lines - newlines are treated as any other
character.

And you can use combinations too, if you fancy.

Cheers Stefan,
Benjohn