Re: Regex to grab a Windows Path from a String...

From: Date: Wed, 17 Dec 2003 13:29:43 +0000
Subject: Re: Regex to grab a Windows Path from a String...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-172874@lists.php.net to get a copy of this message
> > 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). > if(preg_match('/<img[^>]+src[ ]*=[ ]*(|"|\')[a-z]{1}:\\\/i', > $string)) > echo "local links used"; This worked beautifully. Thanks a bunch. -- "Don't 'kill -9' the SYSVMSG" sumbry@sumbry.com

« previous php.general (#172874) next »