Test, validate and match regular expressions
Matches lines starting with 'R' followed by a space, capturing the rest of the text in one group and the last '/' or '(' character in a second group. With global and multiline flags, it scans every line of a custom application log, making it useful for extracting error descriptions or message content that follows an 'R ' prefix, with the trailing delimiter often marking a path separator or parenthesized detail.