Rob Dixon wrote: > > Rajeev wrote: > > > my $seperator = '/(?m:^\s*\n$)/'; > > It will match the following sequence: > > - an optional open parenthesis > - a lowercase 'm' > - a colon > - the start of a new record > - zero or more whitespace characters > - a newline > - the end of a record
Just as I pressed 'Send' I realised that this is an extended pattern with just a pattern match modifier. It's the same as my $seperator = '/^\s*\n$/m' or, as I said, better as my $seperator = qr/^\s*\n$/m It threw me because this form is meant for changing the modifiers in the middle of a regex, which I've never had to do and never seen done. If it applies to the whole regex you should put it outside the delimiters. Having understood what you're trying to do, I know that the code I appended to my last post will do what you want. Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]