0

Possible Duplicates:
How do I extract HTML content using Regex in PHP
RegEx match open tags except XHTML self-contained tags

Hi,

I dont know regex, i working with PHP (possible use Zend framework)

I need to get from html page images and links. I think the best way to do it with regex, regex pattern that insert images and links to 2 arrays:

  1. linksArray
  2. imagesArray

Please can you help me,

Thanks

Community
  • 1
  • 1
Ben
  • 25,389
  • 34
  • 109
  • 165

1 Answers1

1

This has been asked before. Quite often (example). Regexes are a bad solution. You should use a parser.

Community
  • 1
  • 1
Turtle
  • 1,320
  • 10
  • 11