kvz/phpjs — comment on commit d180ac75dd7f0a766308af3f95c93dc1b347961d
File:  line 0
By kbjr:

So, this was a while ago, but I recently came back across this code a figured I should finish what I started...

On that note, I have quickly thrown together a sort of hybrid between XRegExp and the pattern parsing we had been discussing earlier (see above). What I came up with is [in a gist here](https://gist.github.com/1330092).

By putting the two together we get a function that I called pcreXRegExp that could be used for any of the php pcre functions. This way we get the added syntax advantages of XRegExp, while creating a simple way parsing php style regular expression patterns. So, now we could remove the ugly eval above and use something like this instead:

pattern = pcreXRegExp(pattern);

Anyway, tell me what you guys think about this idea, and maybe we can start to talk about how this would work in actual preg_ functions.