You’re asking for quite a lot, and some are quite complex, it seems like it’s over-preventive as well, like, no chat ever have such issues… So given all this, and that we gave many RegExp on the forums already, I’ll give you some answers I think will work, but it’s up to you to fix them if they don’t. Here’s a guide to RegExp to help.
/([A-z]+[0-9]+)|([0-9]+[A-z]+)/
- Can’t think of one that’d work, would likely bring issues with punctuation if a RegExp is found to work
- Can’t think of one that’d work
/([A-z]+[\u0400-\u04FF]+)|([\u0400-\u04FF]+[A-z]+)/
/([A-z]\s){4,}/
If you want to limit your chat to Latin and Cyrillic alphabets, you can do so like this:
/[^\x00-\x7F]+|[^\u0400-\u04FF]/