Interview Questions

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

PHP Interview Questions and Answers


(Continued from previous question...)

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

(Continued on next question...)

Other Interview Questions