jellydator / validation

An idiomatic validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.
MIT License
39 stars 6 forks source link

How can I check if a string contains chars, integer and special character? #17

Closed rngallen closed 1 year ago

rngallen commented 1 year ago

Is there a builtin function to check if a string contains chars(ASCII LETTERS), integer and special character?

swithek commented 1 year ago

If you cannot find a function like this in the is package, you can always use the Match rule with an appropriate regexp value.