jeudi 28 juillet 2016

allow specif regex only in a block

I have a regex that matches every arabic(persian) sentence along with numbers and some symbols. The regex is:
[u0600-u06FFuFB8Au067Eu0686u06AF .!?:)(,;1234567890%-_#]+$
This works fine for arabic string.

Furthermore there is another requirement that string should not only match previous regex but also match words which start with @ followed by [a-zA-Z0-9-]^ followed by a string. How to match this?

Aucun commentaire:

Enregistrer un commentaire