Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: regular expression for getting text between 1. and 2.by Kenosis (Priest) |
on Apr 12, 2013 at 17:04 UTC ( [id://1028423]=note: print w/replies, xml ) | Need Help?? |
In the cases you've shown, there's whitespace enclosing the text you want, so you can use a lookbehind and lookahead to capaure the enclosed text:
Output:
Hope this helps!
In Section
Seekers of Perl Wisdom
|
|