PHP regex problem

Written by: | Posted on:

PHP allows the use of the PCRE library, but PHP5 comes with an interesting, undocumented twitch: You have to add -with-pcre-regex if you want to use preg_match(), a quite commonly used function. With PHP4, all you did was -with-pcre and you got the whole package, and the -with-pcre-regex is undocumented in the configure program of PHP5 which is where people look for this.

Image Image

Father, husband, software developer, musician and photographer.


Get to know what I'm up to

© 2020 Niklas Saers Contact Me