what is (
*?) in this code
$data=preg_replace(’/<a(.?)href="(.?)fsex.mobi(.*?)</a>/’,null,$data);
what is (
*?) in this code
$data=preg_replace(’/<a(.?)href="(.?)fsex.mobi(.*?)</a>/’,null,$data);
The line says, basically remove data in the string that fits your selection.
It is looking for Where numbers are some text.
So, it is looking for SOMETEXT.fsex.mobiSOMETEXT.SOMETEXT
Must be removing any reference to ANY site that close to " fsex.mobi " with or without the www and
any .com / .net / .org / .us / .any …
Hope that helps. Here is a site that explains the codes in detail…
http://us1.php.net/preg_replace
Look down a bit after the site’s post’s to where a user makes a post and it has a huge
explanation of just about anything you can use for the pattern.
Should explain it for you…
thanks