Build, test, and debug regular expressions
This regex matches a line of text that contains at least two occurrences of a date-like pattern (formatted as numbers separated by slashes, such as M/D/YY). By repeating a non-capturing group with a lazy match exactly twice, it isolates and captures the second date occurrence on the line into capturing group 1. Using global and multiline flags, it is highly effective for extracting the nth instance of a specific pattern from multi-line text blocks.