This section contains reference documentation for the regexpExtract function.
foo
123
foo
foo bar
bar
defaultValue
select regexpExtract('foo', '.*') AS value
from ignoreMeselect regexpExtract('foo123', '[0-9]+') AS value
from ignoreMeselect regexpExtract('foo123', '[^0-9]+') AS value
from ignoreMeselect regexpExtract('foo bar baz', '(\w+) (\w+)', 0) AS value
from ignoreMeselect regexpExtract('foo bar baz', '(\w+) (\w+)', 2) AS value
from ignoreMeselect regexpExtract('foo123', 'bar', 0, 'defaultValue') AS value
from ignoreMe