[Users] A better way to count the length of a variable

Tavis P tavis.lists at galaxytelecom.net
Mon Feb 12 12:05:18 CET 2007


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




More information about the sr-users mailing list