[^] (Wildcard - character(s) not to match)
LIKE/PATINDEX wildcard [^]
What changes
- Input
- pattern string
- Output or change
- none
Syntax at a glance
LIKE '...[^abc]...'
Work example
A text filter needs the pattern behavior of [^] (Wildcard - character(s) not to match) for a fixed input string.
Test a match, a near miss, a literal wildcard, and a case difference under the column collation.
Check your work [^] (Wildcard - character(s) not to match). The pattern for [^] (Wildcard - character(s) not to match) matches only the intended strings under the active collation.
Open Microsoft Learn for full syntax, permissions, and details for your version.