REGEXP_EXTRACT (Lakehouse v2)
Extracts the first substring that matches a regular expression pattern.
Analyze Syntax
Section titled “Analyze Syntax”func.regexp_extract(<str>, <pattern>[, <group>])Analyze Examples
Section titled “Analyze Examples”func.regexp_extract('price: $42.50', '\\$(\\d+\\.\\d+)', 1)
┌─────────┐│ '42.50' │└─────────┘SQL Syntax
Section titled “SQL Syntax”REGEXP_EXTRACT(<str>, <pattern>[, <group>])SQL Examples
Section titled “SQL Examples”SELECT REGEXP_EXTRACT('price: $42.50', '\\$(\\d+\\.\\d+)', 1);
┌───────┐│ 42.50 │└───────┘