Last active
February 28, 2020 23:54
-
-
Save rolldone/ad9da2594bd3532dfb5b1c767daeb7b4 to your computer and use it in GitHub Desktop.
webpack test Regex cheat
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
.*[^a]$ = "kecuali a" | |
.*[a]$ = "harus a" | |
/^["filter"]{"length"}$/ = base regex | |
# Kedua kode ini harus ada dengan module yang berbeda | |
- Ambil keluarkan dari node_modules yang mengandung moment | |
/[\\/]node_modules[\\/]((moment|module_lain).*)[\\/]/ | |
- Jangan mengambil yang mengandung moment | |
/[\\/]assets[\\/]((?!moment|module_lain).*)[\\/]/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment