Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Regex Cheatsheet
- Quick reference about regex to look up
- ## Feature: Negative lookahead `?!`
- Specifies a group that can not match after the main expression (if it matches, the result is discarded).
- Doesn't work in Javascript, but works on Sublime Text.
- #### Situation: We have a list with the text `"user" : "<id>"` where the id vary betwen 123, 234, 345. You want to find if there is any other values for `<id>` that are not included in the list (123, 234, 345).
- Regex: `user" : "(?!123|234|345)`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement