Test, validate and match regular expressions
This regular expression matches any text containing the phrase 'duplicates value on record with id', allowing for any characters (including newlines) before and after. It is useful for detecting Salesforce exceptions related to duplicate record IDs in logs, error messages, or test output, enabling automated monitoring or filtering of such errors.