Reg. Exp. Help
| From: | Scott Mebberson | Date: | Tue, 13 Feb 2001 02:00:56 +0000 |
| Subject: | Reg. Exp. Help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-39306@lists.php.net to get a copy of this message | ||
I have written a regular expression that searches for any occurance of
src="*" in a html page and rewrites it so that it is equal to
src="http://www.whereever.com/images/filename.jpg"
-
If there are five occurances of this match then it replaces them all. Is
there anyway to make it only run once. Then if I want to loop and do it
again. I want to do this so I can put the contents of the original * in
src="*" into and array and access them later for uploading the files.
Thanks
Scott Mebberson
scott@redbluedesign.com