[Users] regexp and AVP problem

Klaus Darilion klaus.mailinglists at pernau.at
Mon Jul 17 19:35:43 CEST 2006


Hi!

I have problems with avp_subst:

I have $avp(s:pai) with the value <tel:+43108> (the < and > belongs to 
the AVP)

Then I want to extract the number into $avp(s:cli):

avp_subst("$avp(s:pai)/$avp(s:cli)","/tel:(.*)/\1/")

The result is <+43108>

Can someone explain me why the leading < belongs to the result? 
Shouldn't it be removed?

thanks
klaus




More information about the Users mailing list