Test, validate and match regular expressions
This regex matches an entire line and captures the text before an optional suffix in the format `(#number)` at the end of the string. It uses a lazy quantifier for the main text and an optional non-capturing group for the suffix. It is ideal for extracting clean text data from repeating fields that may have auto-generated numeric identifiers appended.