regular expression help!
| From: | William Stokes | Date: | Thu, 18 Jan 2007 10:34:36 +0000 |
| Subject: | regular expression help! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-247313@lists.php.net to get a copy of this message | ||
Hello,
Can someone here give me a glue how to do the following. I guess I need to
use regular expressions here. I have absolutely zero experience with regular
expressions. (if there's another way to do this I don't mind. I jus need to
get this done somehow :)
I need to strip all characters from the following text string exept the
image path...
"<img width=\"99\" height=\"120\" border=\"0\"
src=\"../../images/new/thumps/4123141112007590373240.jpg\" />"...and then
store the path to DB. Image path lengh can vary so I guess that I need to
extract all characters after scr=\" until next \" or somethig
similar.
Thanks for your advise!
-Will