Hi, please I want to know: If and How I can use variables in "regexp" . example: avp_subst("avp(s:var1)/$avp(s:var2)","/(.*)$avp(s:var3)(.*)/\1/") In this example, simply the "$avp(s:var3)" string is matched, not the $avp(s:var3)'s content.
I am very need this function.
Thanks in advance, Yazid
Hi Yazid,
avp_subst() does not accept dynamic strings in the RE part....
Regards, Bogdan
Yazid Hadj Said wrote:
Hi, please I want to know: If and How I can use variables in "regexp" . example: avp_subst("avp(s:var1)/$avp(s:var2)","/(.*)$avp(s:var3)(.*)/\1/") In this example, simply the "$avp(s:var3)" string is matched, not the $avp(s:var3)'s content.
I am very need this function.
Thanks in advance, Yazid
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
El Friday 30 May 2008 14:01:49 Yazid Hadj Said escribió:
Hi, please I want to know: If and How I can use variables in "regexp" . example: avp_subst("avp(s:var1)/$avp(s:var2)","/(.*)$avp(s:var3)(.*)/\1/") In this example, simply the "$avp(s:var3)" string is matched, not the $avp(s:var3)'s content.
I am very need this function.
Please, use the **already** open thread instead of generating a new mail for the same subject.