[j-nsp] jcs:regex options
Phil Shafer
phil at juniper.net
Wed Jun 15 11:26:48 EDT 2011
Pierfrancesco Caci writes:
>in the meantime, I could live with doing something like tr/A-Z/a-z/ to
>both sides of my comparison, but I can't find anything like that
>either.
XPath includes a translate() function:
var $upper-user = translate($user, "abcdefghijklmnopqrstuvwxyz",
"ABCDEFGHIJKLMNOPQRSTUVWXYZ");
<output> "Username: " _ $user;
<output> "Uppercase: " _ $upper-user;
Thanks,
Phil
More information about the juniper-nsp
mailing list