Text


Following you will find a selection of string processing functions and operators:


&
Concatenation operator
strings.find
Searches for a substring, supports pattern matching
in
Searches for a substring
strings.glob
Matches patterns including ? and * wildcards
notin
Checks whether a substring is not included
strings.match
Looks for the match of a pattern
atendof
Checks whether a string ends in the given pattern
strings.hits
Number of occurrences of a substring pattern
strings.include
Inserts a substring
size
String length
strings.replace
Replaces substrings
abs
ASCII code
strings.remove
Removes a substring
empty/filled
Check for an empty/filled string
split
Splits a string into its words
tonumber
Converts a string to a number
strings.fields
Extracts given fields (columns) in a string
tostring
Converts a number to a string
trim
Removes leading and trailing white spaces
strings.format
C-style formatting
strings.ltrim Removes all leading white spaces or a given character strings.rtrim Removes all trailing white spaces or a given character
lower/upper
Convert to lower/upper case
strings.capitalise/
strings.uncapitalise
Capitalise/uncapitalise a string
strings.dleven
Damerau-Levenshtein distance of two strings
regex.new
Defines a regular expression pattern
strings.fuzzy
Compares two strings case-insensitively and returns an estimate of their similarity
regex.count
Counts the number of matches
strings.jaro
Jaro(-Winkler) similarity of two strings regex.find
Searches a string with a regular expression
strings.shannon
Shannon entropy
regex.match
Looks for the first match of a regex-pattern in a string