rarebit Posted June 10, 2008 Share Posted June 10, 2008 Hi, i'm doing a site which disallows people to leave contact information in public areas until they subscribe, so I need a way to filter out their attempts... Here's something I did the other day for actually getting true links: $s = "This is my web address <a href='here.com'>here</a>, This is my web address <a href='here.com' >here</a > xyz"; $pattern = array('/\<a([\w\W]*)\>([\w\W]*)\<([\w\W]*)\/([\w\W]*)a([\w\W]*)\>/isU'); $replacement = array('***'); $ss = preg_replace($pattern, $replacement, $s); Is there anything that anybody already has for this purpose? How do you hide your address? e.g. joe *t blogs d*t c*m joe 4t blogs d0t c0m joe at blogs dot com ... etc Link to comment https://forums.phpfreaks.com/topic/109548-cracking-the-code/ Share on other sites More sharing options...
jibster Posted June 10, 2008 Share Posted June 10, 2008 No answer sorry but you might be better off posting in the REGEX forum. Link to comment https://forums.phpfreaks.com/topic/109548-cracking-the-code/#findComment-562008 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.