Created
February 28, 2014 03:11
-
-
Save cecyurbina/9264442 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
var str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; | |
var regexp = /[A-E]/gi; | |
var matches_array = str.match(regexp); | |
console.log(matches_array); | |
// ['A', 'B', 'C', 'D', 'E', 'a', 'b', 'c', 'd', 'e'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment