if(preg_match('/<img[^>]+src[ ]*=[ ]*(|"|\')[a-z]{1}:\\\/i', $string)) echo "local links used";

[EMAIL PROTECTED] wrote:

My regex skills are serious lacking and after scouring the net for
relevant links I'm a bit stuck.  I've got a textarea field where I pull
user input from, and I'd like to search this entire field for a Windows
Directory Path (ex. C:\Documents\Blah).

Basically my users are allowed to specify HTML img tags in this textarea
and I'd like to make sure that they don't reference any images that are on
their local hard drive (which many of them are doing and then thinking
the HTML that I generate from that actually works when it doesn't).

Suggestions?


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to