REGEXP_EXTRACT (Lakehouse v2)
正規表現パターンに一致する最初の部分文字列を抽出します。
Analyzeの構文
Section titled “Analyzeの構文”func.regexp_extract(<str>, <pattern>[, <group>])Analyzeの例
Section titled “Analyzeの例”func.regexp_extract('price: $42.50', '\\$(\\d+\\.\\d+)', 1)
┌─────────┐│ '42.50' │└─────────┘SQLの構文
Section titled “SQLの構文”REGEXP_EXTRACT(<str>, <pattern>[, <group>])SELECT REGEXP_EXTRACT('price: $42.50', '\\$(\\d+\\.\\d+)', 1);
┌───────┐│ 42.50 │└───────┘