Oops. You're looking for PCREmonks, not Perlmonks.Darn. I knew it was too easy to reply with:
my $regex = qr/(\d\s+foo)/; $some_string =~ /$regex[^\r\n]*$regex/;
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re^2: PCRE: Repeating Subpattens After Intervening Characters
by QM
in thread PCRE: Repeating Subpattens After Intervening Characters
by schnarff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |