String Operations
Returns the portion of the string after a specific sub-string
returns: string
> = stringop.after('selenite','le') nite
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
Gets the last char of a string
returns: string
> = stringop.lastchar('C:\') \
Counts the occurrence of a particular string or character
returns: integer
> = stringop.occur('selenite','e') 3
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
Removes quotes from a string
returns: string
> = stringop.stripquotes('"selenite"') selenite
Removes redundant whitespace in a string
returns: string
> = stringop.trim(' selenite ') selenite