phalcon/zephir — pull request #76 by racklin (2014-01-14 07:05:11+00:00)
Title: Added PregMatchOptimizer.

Hi,

I have Added PregMatchOptimizer. It use PHP internal PCRE implements not userland `preg_match` function call.

PregMatchOptimizer is smart enough, and much compatible with php userland's `preg_match`

It support optional return , and optional parameters ...

ex:

let matched = preg_match(pattern, subject) ; or
let matched = preg_match(pattern, subject, matches); or
preg_match(pattern, subject, matches); // without return value
preg_match(pattern, subject); // it's ok , but why you do that ;)

Signed-off-by: Rack Lin