in reply to Re: Re: Re: Re: Regex probleme, how memorize (match)? with question mark ?
in thread Regex probleme, how memorize (match)? with question mark ?
I can see two improvements toward making it bulletproof:
- you never know when someone will use single quotes
- or linebreaks
In this kind of golf the code tends to get longer 8^}
/href\s*=\s*["']mailto:([^"']*)["']/si
Someone should mention HTML::Parser.
--
Check out my Perlmonks Related Scripts like framechat,
reputer, and xNN.
In Section
Seekers of Perl Wisdom