Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 797 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 797 Bytes

EasyRegexLibrary

An easy to use library with pre-written Regular Expressions for some common searches such as phone numbers, credit card numbers, and email addresses. Currently only works for U.S. phone numbers/addresses.

To use: simply call the EasyRegex class, choose your method for searching, pass the text, and you're returned a MatchCollection of the specified search results.

MatchCollection streetAddresses = EasyRegex.FindStreetAddresses("Mytext");

You can also search a file directly using the ReadFromFile method.

MatchCollection result = EasyRegex.ReadFromFile(filePath, {searchMethod});

Or use the ReadFromFileAsync method to perform the file reading asynchronously

MatchCollection result = await EasyRegex.ReadFromFileAsync(filePath, {searchMethod});