Last active
May 30, 2018 13:03
-
-
Save Joopmicroop/0e8e74b7a095d34dec56 to your computer and use it in GitHub Desktop.
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
// match everything within style tags | |
(?<=(<style[^>]*>))([^]+?)(?=(<\/style>)) |
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
// split paths and urls in path, file, extension | |
/^(.*[\\\/])([\w\s]+|)(\.\w+|)/ | |
/* | |
/test/dir/0_3_1448632436130_full.jpg | |
MATCH | |
1. `/test/dir/` // path | |
2. `0_3_1448632436130_full` // filename | |
3. `.jpg` // extension | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment