Created
July 12, 2019 01:00
-
-
Save zheeeng/7389f5386f6f1c9b209a06b911a090fc to your computer and use it in GitHub Desktop.
Regexp for non-matching
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/^(?!.*hello).*$/.test('hello') | |
/^((?!hello).)*$/.test('hello') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment