Saturday, May 16, 2009

Please give a regular expression (preferably Perl/PREG style), which can be used to identify the URL from within a HTML link tag.

Try this: /href="([^"]*)"/i

No comments:

Post a Comment