http://www.perlmonks.org?node_id=94638


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:

  1. you never know when someone will use single quotes
  2. 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.