To match multiple times use to need use the global option
str.match(/your_expression_here/g)
^
More Related Contents:
- RegEx for Multi-Words Without Numbers and Any Special Characters
- What is this pattern “\\s*\\^++\\s*” used for? [duplicate]
- Regular expression to match balanced parentheses
- How do I deal with special characters like \^$.?*|+()[{ in my regex?
- Regular expression that matches valid IPv6 addresses
- How to capture multiple repeated groups?
- How to use regex with find command?
- Check if a string matches a regex in Bash script
- Regular expression for exact match of a string
- Regular expression for matching latitude/longitude coordinates?
- How can I “inverse match” with regex?
- Regex to disallow more than 1 dash consecutively
- Delete all content but keeping matched
- regex for zip-code
- Bash, grep between two lines with specified string
- Regex to match 2 digits, optional decimal, two digits
- Extracting top-level and second-level domain from a URL using regex
- HTML5 input pattern search for quote
- When should I not use regular expressions?
- regex to remove ordinals
- Replace a word with multiple lines using sed?
- Regular Expression Vs. String Parsing
- .htaccess RewriteRule to path without changing URL
- Can extended regex implementations parse HTML?
- How to get Vim to highlight non-ascii characters?
- Regexp for subdomain
- Redirect all traffic to root of another domain
- ignoring changes matching a string in git diff
- ElasticSearch and Regex queries
- Regex allow digits and a single dot