正则表达式查找关键字前后的单词?

Regex to find the word just before and after a keyword?

什么 RegEx 会匹配关键字后面的单词(包括特殊字符)?

例如在下面的文本中,使用关键字 "equals",RegEx 将匹配“'1'”、"Two" 和“3”

Status equals '1' or Status equals Two or Status equals 3

使用积极的回顾。

(?<=\bequals )\S+