Trying to find the links on a page.
my regex is:
/]*href=(\\\"\\\'??)([^\\\"\\\' >]*?)[^>]*>(.*)<\\/a>/
why don't you just match
"what?';
$res = array();
preg_match_all("/
then
$ php test.php
array(2) {
[0]=>
array(1) {
[0]=>
string(27) "
array(1) {
[0]=>
string(4) "that"
}
}
which works. I've just removed the first capture braces.