A regular expression To match everything until meeting the first parenthesis in the string.
/^[^\(]+/g
Matches:
- I Like (RegexPattern)
- I Like (RegexPattern
Non-matches:
- (RegexPattern) I Like
- (RegexPattern) I Like (RegexPattern)
- [pattern]
See Also:
- Regex To Match Characters Between Two Strings
- Regex To Match Any Characters Between Two Square Brackets
- Regex To Match Everything Before The Last Dot
- Regex To Match Characters Between The Last Parentheses