I have many reg. expressions in a php-framework using preg_match, preg_replace und preg_match_all.
I want to port parts of the framework to c++ and therefor I also need to take over these regular expressions.
Is there an easy way to take over these expressions (I tried pcre but with pcre I must change all expressions and that's very much work)? I tried to take over some code from the php_pcre C implementation but the code is very wired and so I did not get further.
Another solution would be just execute a php-script from C++ but one reason I changed from php to C++ is speed; and calling PHP again would result in a speed decrease again.