-1

What RegEx would match the word (including special characters) right after a keyword?

E.g. In the following text, using the keyword "equals", the RegEx would match "'1'", "Two" and "3"

Status equals '1' or Status equals Two or Status equals 3
Lenny
  • 333
  • 5
  • 19

1 Answers1

2

Use a positive lookbehind.

(?<=\bequals )\S+
Avinash Raj
  • 172,303
  • 28
  • 230
  • 274