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

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -