int strlen( string str )
strlen returns the length of the string, str.
printf("%d\n",strlen("foo"));
Returns: 3
string strsub ( string str, int start, int length )
strsub returns the substring of a given length starting at a given position in the string.
printf("%s\n",strsub("xxxfooxxx",3,3))
Returns "foo".
printf(%s\n",strsub(xxxfooxxx",3,-1))
-1 returns the remainder of the string, "fooxxx".
int sub ( string <regexp> string replacement string sourcestring string count )
sub returns a new string from the sourcestring argument with the specified regular expression regexp replaced with the string specified in the replacement argument.
result = sub("0x[[:xdigit:]]*:,"hex","These are numbers: 0xA8D, 0x34");
string subst ( string str, string pattern, string replacement )
subst substitutes part of a string with another string.
print(subst("xxxonexxx","one","two"));
Returns: "xxxtwoxxx"
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Nutzungsbedingungen Datenschutz Cookie Preference Center