I have to write some regexp. And I know where is a lot of variants. But I find the thing that I don’t understand, so I want to ask.
I had this regexp:
/^[p{Letter} -'`’–]+$/u
It has to allow Latin and symbols like Ü, Æ ect.
And it has bug – it allows also Ukrainian (Cyrillic) symbols “і Ї”.
So I want to add the rule “exclude Cyrillic”. But I don’t know how to do it.
I tried /^[p{Letter} -'`’–][^p{sc=Cyrillic}]+$/u;
but the last part [^] means all except Cyrillic ((
Please, don’t say me to rewrite regexp. I just want to learn how can I write “exclude” rule.
Thanks)