Skip to main content
Post Closed as "Duplicate" by Wiktor Stribiżew regex
edited title
Source Link
isherwood
  • 61.4k
  • 16
  • 122
  • 173

Regular expression for letters of any alphabet

Need to check with a regular expression that the last name consists only of letters. The alphabet can be any. That is, need something like /[[:alpha:]]+/g which is only for latinLatin, but for any alphabet. For example Крылов.

What does such a regular expression look like?

Regular expression for letters

Need to check with a regular expression that the last name consists only of letters. The alphabet can be any. That is, need something like /[[:alpha:]]+/g which is only for latin, but for any alphabet. For example Крылов.

What does such a regular expression look like?

Regular expression for letters of any alphabet

Need to check with a regular expression that the last name consists only of letters. The alphabet can be any. That is, need something like /[[:alpha:]]+/g which is only for Latin, but for any alphabet. For example Крылов.

What does such a regular expression look like?

Regular expression for letters

Need to check with a regular expression that the last name consists only of letters. The alphabet can be any. That is, need something like /[[:alpha:]]+/g which is only for latin, but for any alphabet. For example Крылов.

What does such a regular expression look like?