Created
January 31, 2011 04:12
-
-
Save bensonk/803632 to your computer and use it in GitHub Desktop.
Regular Expression Example
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
| var stuff = "p> This is some text"; | |
| console.log("line: ", stuff); | |
| var re = /p([<>]) (.*)/; | |
| var items = re.exec(stuff); | |
| console.log(items[1]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment