标签: regex
我有输入: John went in Columbia in vacation.
John went in Columbia in vacation.
如果John在输入中,我需要正则表达式返回Columbia 如果输入
John
Columbia
可以这样做吗?
答案 0 :(得分:0)
试试这个
(John)(?=.*?\bColumbia\b)
Regex Demo