in reply to Must use regex, how to clip...

I'm not getting access to the real match operator (m//) so I cannot supply any options
Oh yes you can. There's a way to provide options inside the regex, even for only part of the regex, by putting them between the question mark and the colon in a (?:PAT) (non-capturing parens) construct. For example, these are equivalent:
/.*/si /(?si:.*)/
For automatic help on the syntax, try print out a qr// pattern with whatever options you like.
print qr/.*/si
(?si-xm:.*)
As you can see, there are even more possibilities using this syntax: you can locally disable certain options, even if they're globally set for the whole regex, by putting a "-" in front of the list of options you want disabled. See also perlre.

Replies are listed 'Best First'.
Re: Re: Must use regex, how to clip...
by chantstophacking (Acolyte) on Jan 11, 2003 at 00:41 UTC
    ...thank you. *This* is exactly what I was hoping to discover. I'll review perlre again to see what I missed the last time. Thanks a million bart!