|
-
Jul 28th, 2003, 04:05 PM
#1
Thread Starter
Stuck in the 80s
[Resolved] preg_match() or something?
In my table, there's a bunch of text that may contain image tags, such as:
What I need to do is is search through the whole text and extract all the images and put them in an array. So the above would give me:
I've tried various things with preg_match() and preg_replace(), but I'm fumbling around.
With preg_match, it will still have the various [img] stuff in it and will be in one string, rather than an array. So there's a bunch of additional stuff I'd have to do to parse it.
Is there a better way?
Last edited by The Hobo; Jul 28th, 2003 at 06:14 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|