EasyRegex is a Swift library to simplify the usage of regular expressions. You can declare patterns with a simple declarative syntax.
- Start by creating a new
EasyRegexBuilder()
- Create a chain of commands after the
EasyRegexBuilder()
like.digit()
- Finish the chain by calling
.build()
to build the pattern. This returns the pattern as a string you can use in a regular expression pattern matcher.