© 2020 Pulse Secure, LLC. v
Pulse Secure Virtual Traffic Manager: TrafficScript Guide
STRING.INSERTBYTES( STRING, INSERTION, OFFSET ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
STRING.INTTOBER( NUMBER ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
STRING.INTTOBYTES( NUMBER, [WIDTH] ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
STRING.INTTOHEX( STRING ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
STRING.IPMASKMATCH( IP ADDRESS, CIDR IP SUBNET ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
STRING.LEFT( STRING, COUNT ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
STRING.LEN( STRING ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
STRING.LENGTH( STRING ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
STRING.LOWERCASE( STRING ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
STRING.NORMALIZEIPADDRESS( STRING ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
STRING.RANDOMBYTES( LENGTH ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
STRING.REGEXESCAPE( STRING ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
STRING.REGEXMATCH( STRING, REGEX, [FLAGS] ) ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
STRING.REGEXSUB( STRING, REGEX, REPLACEMENT, [FLAGS] ). . . . . . . . . . . . . . . . . . . . . . . . . . 76
STRING.REPLACE( STRING, SEARCH, REPLACEMENT ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
STRING.REPLACEALL( STRING, SEARCH, REPLACEMENT ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
STRING.REPLACEALLI( STRING, SEARCH, REPLACEMENT ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
STRING.REPLACEBYTES( STRING, REPLACEMENT, OFFSET ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
STRING.REPLACEI( STRING, SEARCH, REPLACEMENT ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
STRING.REVERSE( STRING ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
STRING.RIGHT( STRING, COUNT ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
STRING.SKIP( STRING, COUNT ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
STRING.SPLIT( STRING, [SEPARATOR] ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
STRING.SPRINTF( FORMAT STRING, ARGUMENTS ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
STRING.STARTSWITH( STRING, PREFIX ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
STRING.STARTSWITHI( STRING, PREFIX ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
STRING.SUBSTRING( STRING, BASE, END ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
STRING.TRIM( STRING ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
STRING.UNESCAPE( ESCAPED STRING ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
STRING.UPPERCASE( STRING ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
STRING.URLENCODE( STRING ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
STRING.URLENCODEEXCEPTRESERVED( STRING ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
STRING.VALIDIPADDRESS( STRING ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
STRING.WILDMATCH( STRING, PATTERN ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
STRING.GMTIME.PARSE( STR ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
SYS.DOMAINNAME() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
SYS.GETENV( VARIABLE ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
SYS.GETNETWORKINTERFACES( HASH_OF_OPTIONS ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
SYS.GETPID(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
SYS.HOSTNAME() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
SYS.TIME() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84