Posix/Perl regex in php <p>I have the simple regular expression:</p> <pre><code>\{[0-9]*\} </code></pre> <p>which works fine with PHP's ereg_ functions (Posix compatible), but I need to use the preg_match_all function, which doesn't have an ereg_ equivalent. My expression above doesn't seem to work with preg_ (perl compatible) functions. How can I go about "converting" it to be perl compatible?</p>