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

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -