0

i'm trying to find a regex for allowing only greek characters to pass. But as you know greek language supports an emphasis tote for the most worlds:

For example the world χρήμα which means money has ' character above η How to detect this char with a regex? My current regex is this:

/^[\sΑ-Ω0-9α-ω!$@#*+=._%,-/]*$/
user7334203
  • 6,006
  • 20
  • 46
  • 97

1 Answers1

2

You could use a character class such as

[\u0370-\u03ff\u1f00-\u1fff]+

See a demo on regex101.com.

Jan
  • 40,932
  • 8
  • 45
  • 77