3
eregi("<input[[:space:]]+type=[\"\']?hidden[\"\']?[[:space:]]+value=[\"\']?([^> \"\']+)[\"\']?[[:space:]]+name=[\"\']?(form_page_origine|form_origine|page_origine)[\"\']?[[:space:]]*/?>"

How can I switch it to preg_match? thank.

Gordon
  • 312,688
  • 75
  • 539
  • 559
Sophy SEM
  • 223
  • 5
  • 19
  • 1
    *(related)* [Best Methods to parse HTML](http://stackoverflow.com/questions/3577641/best-methods-to-parse-html/3577662#3577662) – Gordon Mar 14 '11 at 08:33

1 Answers1

1

Have a look at http://php.net/manual/en/reference.pcre.pattern.posix.php you will find all the informations you need.

krtek
  • 26,334
  • 5
  • 56
  • 84
  • 4
    Have a look at [How do I write a good answer to a question](http://meta.stackexchange.com/questions/7656/how-do-i-write-a-good-answer-to-a-question). – Gordon Mar 14 '11 at 08:44