Skip to content

Instantly share code, notes, and snippets.

@iamitshri
Last active May 29, 2019 04:35
Show Gist options
  • Save iamitshri/b1fc90c36674c7c74cb375aa42daeec0 to your computer and use it in GitHub Desktop.
Save iamitshri/b1fc90c36674c7c74cb375aa42daeec0 to your computer and use it in GitHub Desktop.
Regex Lookahead Lookbehind
POSITIVE LOOKAHEAD
(?<=e)I.*? --> 'empIloyeeId' --> Matches only 'I' if its preceded by e
Negative LookBEHIND
(?<!e)I.*? --> 'empIloyeeId' --> Matches only 'I' if its NOT preceded by e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment