Skip to content

An easy to use library with pre-written regular expressions for some common searches like street addresses, phone numbers, etc.

Notifications You must be signed in to change notification settings

MrFrawsty/EasyRegexLibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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});

About

An easy to use library with pre-written regular expressions for some common searches like street addresses, phone numbers, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages