A colleague is scanning a large script looking for the substring UAT (case insensitive). Unfortunately, the script contains many references to “valuation”, either as a whole word or as part of a field name.
What RegEx search pattern would return matches for UAT as in the following samples?
- UAT : Match
- uat : Match
- TheUATServer1 : Match
- Valuation : No match
- ValuationDate: No match
Many thanks
Neil
Edit: This one works for the OP’s cases.
Try this expression:
uat~(ion)The SSMS (and Visual Studio) regex has different syntax for negative lookahead:
~(prevent)If you wanted
uatby itself, you can use this:<uat>.The
<and>stand for begining and end of word, respectively.