c# - a regex pattern that never matches anything -


this question has answer here:

i'm maintaining c# software contains list of rules , each rule has regex pattern part of definition. regex pattern determines whether rule should applied particular data instance or not.

i.e. given particular string, apply rule if regex pattern matches against string, never apply rule against strings regex pattern not match.

i deactivate rules never apply against string.

so need regex pattern not match, no matter string value passed it.

any suggestions?

a negative lookahead looks nothingness not follow current position: (?!)


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -