Results 1 to 4 of 4

Thread: [Resolved] preg_match() or something?

Threaded View

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    [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:

    http://site.com/image.gif
    http://site.com/image2.gif
    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.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width