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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Re: Re: Regex probleme, how memorize (match)? with question mark ?
by tachyon (Chancellor) on Jul 07, 2001 at 04:21 UTC | |
Re: Re: Re: Re: Re: Re: Regex probleme, how memorize (match)? with question mark ?
by bobione (Pilgrim) on Jul 07, 2001 at 05:33 UTC |
In Section
Seekers of Perl Wisdom