konform-kt / konform

Portable validations for Kotlin
https://www.konform.io
MIT License
636 stars 39 forks source link

Add support for other regex matching functions #71

Open Giuliopime opened 1 year ago

Giuliopime commented 1 year ago

Konform uses .match() internally for the pattern validation.

It would be nice if there was an option to choose which method would be used in the regex validation, for example being able to choose containsMatchIn() or find() instead of match(). This would make some specific usages of pattern a bit more efficient and easier to work with.