I would like some help regarding a regular expression in Javascript.
I am trying to match any string that contains either only Basic Latin (ASCII) characters or only Greek Unicode characters. Not allowing strings with mixed characters from these two sets.
I have this regular expression which matches the exact opposite (all strings that contain at least one greek and one latin character), but cannot find a way to negate this:
https://regex101.com/r/JHzmhc/1
Thanks in advance.
\x00-\x7F
, you match the whole ASCII table chars, thus, it is more appropriate to name those chars ASCII chars. – Wiktor Stribiżew