xmartlabs / Eureka

Elegant iOS form builder in Swift
https://eurekacommunity.github.io
MIT License
11.77k stars 1.33k forks source link

Any rule to validate special characters/ numbers in text field in a cell #2247

Closed Mbhatishere closed 1 year ago

Mbhatishere commented 1 year ago

Hi, Is there any rule to validate special characters/ numbers in text field in a cell. I am trying to put validations for a person's name but I don't see any rule which stops him from entering special characters in the field.

Xcode 14.2, iOS 16

mlorenze commented 1 year ago

Hi! you can create custom regex rules like you can see in this example:

Screenshot 2023-09-05 at 11 19 44

You have to create a RuleRegExpr instance with the specific regExpr that you need.