var reg = /e(.*?)e/g;
var result;
while((result = reg.exec(targetText)) !== null) {
doSomethingWith(result);
}
More Related Contents:
- Regex – To allow numeric, only characters R, N, X, B, @ [closed]
- Find particular string from URL in JavaScript
- Regex for Email Address along with name format [duplicate]
- Negative lookbehind equivalent in JavaScript
- JavaScript regex multiline text between two tags
- Case insensitive regex in JavaScript
- Remove not alphanumeric characters from string
- I want to remove double quotes from a String
- Count number of matches of a regex in Javascript
- Password REGEX with min 6 chars, at least one letter and one number and may contain special characters
- Regex created via new RegExp(myString) not working (backslashes)
- Replace a Regex capture group with uppercase in Javascript
- Regular Expression | Leap Years and More
- How to write regex to validate dates?
- Replacing from javascript dom text node
- Javascript Regex to replace text NOT in html attributes [duplicate]
- Javascript – Regex to validate date format [duplicate]
- How to extract a string using JavaScript Regex?
- JavaScript Regex Global Match Groups
- How can I put [] (square brackets) in RegExp javascript?
- What does the regular expression /_/g mean?
- Interesting test of Javascript RegExp [duplicate]
- Javascript Regex to match only a single occurrence no more or less
- Highlight current page in jquery
- Highlight word in HTML text (but not markup)
- All characters in a string must match regex
- RegEx to match stuff between parentheses
- Check if string contains only letters in javascript
- Javascript: Splitting a string by comma but ignoring commas in quotes
- Remove empty tags using RegEx