Created
November 6, 2014 17:18
-
-
Save ttscoff/dbf4737b04e1635e1d20 to your computer and use it in GitHub Desktop.
Regex for Markdown images
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
@"(?:\\(|:\\s+)(?!http)([^\\s]+\\.(?:jpe?g|gif|png|svg|pdf))" | |
# matches local images: | |
# matches "(image.png)" | |
# matches "]: image.png" | |
# does not match remote images (http*) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment