Ah efficient length counting, you're only a version away...
Thanks Brandon
Brandon Armstead wrote:
Tavis P wrote:
I'm trying to find a fast way to count the length of a variable (and detect when the length exceeds a certain value) All i've come up with so far is a regex, does anyone know of a faster/better way to do this?
Heres my current approach: !avp_check("$ci", "re/^.{1,128}$/g")
tavis
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hello Tavis,
Currently that is the only method available, however keep your eye out for the release of OpenSER version 1.2.0, it was recently froze in CVS and hopefully will be ready pretty soon, however here are some of the methods that will be available: http://openser.org/dokuwiki/doku.php/transformations:devel.
Regards, Brandon