Skip to content
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
..
Failed to load latest commit information.
lib
test
.gitignore
README.md
mix.exs
package.verbal_expressions.exs

README.md

VerbalExpressions

Use VerbalExpressions, as the name suggests, to express Regular Expressions in a more verbal way. Instead of a rather cryptic regular expressions like:

Regex.match?(%r/^te?.*s[^t]*$/, "test") 

you can use VerbalExpressions to write:

startOfLine() 
|> then("t") 
|> maybe("e") 
|> anything() 
|> then("s") 
|> anythingBut("t")
|> endOfLine()
|> match?("test")
Something went wrong with that request. Please try again.