(?<=\s|^) #to look behind the match
(stackoverflow) #the string you want. () optional
(?=\s|$) #to look ahead.
Created
September 15, 2020 11:13
-
-
Save bashkirtsevich/6b86914bb2bb2c30bd05e08852c9cf50 to your computer and use it in GitHub Desktop.
Regex look ahead/behind
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment