javascript to normalise calling number

Feb 24, 2009 at 3:52 PM

Trying my hand at the inteliscript editor for some DB integration, however, I'm trying to normalise the calling number for a DB query to make sure its clean and even though I have asked it to be evaluated, it doesnt appear to want to be.  Exact xml script extract attached:
<SetVariable Name="inMSISDN" EnableEval="true">@CallerUsername@.replace(/[^\d]/g, "");</SetVariable>
 Any ideas?