String Operations

stringop.after(s,sub)

Returns the portion of the string after a specific sub-string
returns: string
> = stringop.after('selenite','le')
nite

stringop.before(s,sub)

Returns the portion of the string before a specific sub-string
returns: string
> = stringop.before('selenite','nite')
sele

stringop.between(s,start,stop)

Gets a string between 2 strings
returns: string
> = stringop.between('{selenite}','{','}')
selenite

stringop.gettoken(s,delim,int)

Returns what comes after a delimiter
returns: string
> = stringop.gettoken('one;two;three',';',2)
two

stringop.lastchar(s)

Gets the last char of a string
returns: string
> = stringop.lastchar('C:\')
\

stringop.occur(s,sub)

Counts the occurrence of a particular string or character
returns: integer
> = stringop.occur('selenite','e')
3

stringop.random(int)

Generates a random string that is the length of your choosing
returns: string
> = stringop.random(8)
wavanvki

stringop.replace(s,sfind,srepl)

Replaces a string
returns: string
> = stringop.replace('somestring','some','new')
newstring

stringop.stripquotes(s)

Removes quotes from a string
returns: string
> = stringop.stripquotes('"selenite"')
selenite

stringop.trim(s)

Removes redundant whitespace in a string
returns: string
> = stringop.trim(' selenite ')
selenite