I use this
Code: Select all
// find all the urls preg_match_all("|href\=\"?'?`?([[:alnum:]:?=&@/;._-]+)\"?'?`?|i", $html, &$matches);
I have tried putting the '#' into many places in that line of code but it didn't generate proper URLs.
I'm no expert with the preg_match stuff so would be grateful for any help