"Hello, this is Mike (example)".replace(/ *\([^)]*\) */g, "");
Result:
"Hello, this is Mike"
More Related Contents:
- Split a string between special characters [closed]
- Javascript: Decimals still being allowed in regex check for numbers [duplicate]
- Regex to replace multiple spaces with a single space
- Regex to match all instances not inside quotes
- Regex to check whether a string contains only numbers [duplicate]
- Regular expression which matches a pattern, or is an empty string
- Template literal inside of the RegEx
- JavaScript regex pattern concatenate with variable
- How can I replace a regex substring match in Javascript?
- How to access object property with invalid characters
- How can I invert a regular expression in JavaScript?
- match() returns array with two matches when I expect one match
- Regex and ISO8601 formatted DateTime [duplicate]
- regex to get the number from the end of a string
- regex extract email from strings
- RegEx – Get All Characters After Last Slash in URL
- JavaScript regular expression exception (Invalid group)
- JSLint “insecure ^” in regular expression
- Get index of each capture in a JavaScript regex
- Javascript regex match fails on actual page, but regex tests work just fine
- Remove trailing numbers from string js regexp
- REGEX: Capture Filename from URL without file extension
- Replace keys in template string with object properties
- Only numbers. Input number in React
- Extract parameter value from url using regular expressions
- RegEx Ignore Case
- Javascript – regex – word boundary (\b) issue
- Javascript Regular Expression for rgb values
- How to properly escape characters in regexp
- How to loop all the elements that match the regex?