An utility tool for generating Regex patterns using code (RaC - Regex as Code)
Future:
Install-Package RegexBuilder
- Create a
RegexBuilder
object - Use any of the extensions methods (like
AddAnyOf
,AddLiteral
,AddNumbers
and more) - Convert the
RegexBuilder
into aRegex
object usingToRegex
function
RegexBuilder regexBuilder = new RegexBuilder();
regexBuilder = regexBuilder.AddAnyOf(new[] { 'a' });
var regex = regexBuilder.ToRegex();
Assert.IsTrue(regex.IsMatch("a"));
- Fork it (https://github.com/javitolin/RegexBuilder/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Distributed under the MIT license.