Created
June 4, 2013 08:53
-
-
Save zheplusplus/5704609 to your computer and use it in GitHub Desktop.
Markdown split sample regex
This file contains 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
/* inline codes are within two ` */ | |
'a``b``c``d`e``f'.split(/``((?:[^`]|`[^`])*)``/) | |
/* ["a", "b", "c", "d`e", "f"] */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment