[OpenSIPS-Users] Documentation problem in regex module
Iñaki Baz Castillo
ibc at aliax.net
Thu Jul 1 19:08:26 CEST 2010
2010/7/1 Pete Kelly <pkelly at gmail.com>:
> if (pcre_match_group("$rU", 2)) {...
>
> However, if you call it like this you get this error when starting opensips:
>
> "numbers used as parameters - they should be quoted"
>
> To fix this you need to put both parameters in quotes, e.g.:
>
> if (pcre_match_group("$rU", "2")) {...
>
> This had me confused for a while - it happens on trunk and on the 1.6 branch.
You are totally right, it's a bug in the doc. I've fixed it right now
in the trunk version.
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the Users
mailing list