Matching lines with regular expression

This calculator matches lines in text using regular expression. It outputs line numbers and lines, which were matched and which were not matched, separating them.

Creative Commons Attribution/Share-Alike License 3.0 (Unported)

This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/5682/. Also, please do not modify any references to the original work (if any) contained in this content.

The idea is simple: enter lines of text and regular expression to check. This calculator checks each lilne against regular expression. If it is matched, line with its line number goes to "Matches" table and counter of matched lines is incremented. If it is not matched, line with its line number goes to "Mismatches" table and counter of mismatched lines is incremented.

Thus you can filter big chucks of text, like log files, with regular expression. Inspired by work, I hope it could be useful for somebody else as well.

PLANETCALC, Matching lines with regular expression

Matching lines with regular expression

Matched
 
Not matched
 

Creative Commons Attribution/Share-Alike License 3.0 (Unported) PLANETCALC, Matching lines with regular expression

Comments