[Solved] allow specif regex only in a block
Ok, first you should probably write your regex as: [\u0600-\u06FF\uFB8A\u067E\u0686\u06AF \.!?:)(,;1234567890%\-_#]+$ Here %\-_ inside […] means % or – or _ while your %-_ means “any symbol with the code from % to _. Try /[%-_]/.exec(“)”) and see what I mean: the ) symbol is in that range. I also put \. which highlights that … Read more