Skip to content

custom expression to check if the input characters are in english only #597

@SangeetaMishr

Description

@SangeetaMishr

Need help with an expression I can use to verify if name entered by the user is in english characters only.

<%= Regex.match?(~r/^[A-Za-z]+$/, "input") %>
this will return boolean value. Replace input with the result, capturing the name

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions