Count Rows in TXT/CSV using Regular Expression

How to count rows in TXT/CSV using regular expression

I have a *.txt or *.csv containing column headers and X rows of data.

Using RegEx the task simply counts the number of rows based on carriage returns.

Great for csv files that have X amount of records and you simply need a total count of rows minus the headers.

Task Category:

Functions (Basic)