我是 Hive 正则表达式匹配的新手,正在努力寻找匹配单词边界的正确模式:
haystack RLIKE concat('(?i)\b', 'needle', '\b')
不返回任何东西。
我在数据库中的示例值:
haystack
---------
needless to say
this is a needle
so many (needle)
these are needles
当我使用haystack RLIKE concat('(?i)', 'needle')
时,它会返回所有行,但我实际上正在寻找this is a needle
。