Sophy SEM
Sophy SEM

Reputation: 223

Convert POSIX pattern to PCRE in php (eregi to preg_match)

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.

Upvotes: 3

Views: 1221

Answers (1)

krtek
krtek

Reputation: 26597

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

Upvotes: 1

Related Questions