【发布时间】:2021-03-14 05:31:58
【问题描述】:
我需要在字符串中搜索,更多的单词以任意顺序搜索。
例如,需要一个正则表达式来匹配两行,使用单词“搜索”和“文本”
search in this text
in this text search
我使用经典的正则表达式:
(?=.*\bsearch\b)(?=.*\btext\b).*
但是regexp_like 不支持\b。
我知道我可以使用带有多个条件的选择
select * from table
where string like '%search%'
and string like '%text%'
但如果有 regexp_like 的解决方案,我更喜欢。
问候, 马可
【问题讨论】:
标签: oracle regexp-like