Liking cljdoc? Tell your friends :D

lambdaisland.regal

Compile Regal syntax to regex patterns.

(regex [:cat :start [:class [\a \z] [\A \Z] [\0 \9] _ -] "@" [:repeat [:class [\0 \9]] 3 5] [:* [:not .]] [:alt "com" "org" "net"] :end]) #"\A[a-zA-Z0-9_-]\Q@\E[0-9]{3,5}[^.]*(?:\Qcom\E|\Qorg\E|\Qnet\E)\z"

Compile Regal syntax to regex patterns.

>>> (regex [:cat
            :start
            [:class [\a \z] [\A \Z] [\0 \9] \_ \-]
            "@"
            [:repeat [:class [\0 \9]] 3 5]
            [:* [:not \.]]
            [:alt "com" "org" "net"]
            :end])
#"\A[a-zA-Z0-9_-]\Q@\E[0-9]{3,5}[^.]*(?:\Qcom\E|\Qorg\E|\Qnet\E)\z" 
raw docstring

lambdaisland.regal.malli

Custom Malli schema that supports regal directly.

Custom Malli schema that supports regal directly.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close