regexr
regexr copied to clipboard
Feature request: Add 'Match all' option
It would be helpful to have an option to test for all matches in a multi-line text (treating each line as an individual test). You can do the opposite via 'Match none' (in this case, the test is successful if none of the lines in the text match the expression). This allows me to group negative test in one, so I know that as long as none of them match the expression, the test is successful. But I cannot figure out a way to group positive cases in one test. The 'Match any' option will make it a success if any line matches the condition, but I need all of them to match. And the 'Match full' option will not work because I'm try to find a match in each line. So, now I can group negative test, but positive test must be defined one test at a time, and it would be handy if they could be grouped as well.