Regexp() |
Working with Formulas > Functions Used in Formulas > Text Functions > Regexp()
REGEXP() is a powerful text-matching function that can be used three ways.
Function Format
REGEXP(string, match string [, string | number])
Return Value
REGEXP() returns a character string
Examples
REGEXP("2.71828 IS LESS THAN 3.14159", "[0-9.]+") = "2.71828"
REGEXP("2.71828 IS LESS THAN 3.14159", "([0-9.]+)([^0-9.]+)([0-9.]+)", 1) = "2.71828"
REGEXP("2.71828 IS LESS THAN 3.14159", "([0-9.]+)([^0-9.]+)([0-9.]+)", 3) = "3.14159"
REGEXP("2.71828 IS LESS THAN 3.14159", "([0-9.]+)([^0-9.]+)([0-9.]+)", "$3 IS CALLED 'PI'") = "3.14159 IS CALLED 'PI'" |