Re: [PHP] Regex to grab a Windows Path from a String...

2003-12-17 Thread sumbry
> > 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('/]+src[ ]*=[ ]

Re: [PHP] Regex to grab a Windows Path from a String...

2003-12-17 Thread Marek Kilimajer
if(preg_match('/]+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 thi

[PHP] Regex to grab a Windows Path from a String...

2003-12-17 Thread sumbry
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