I have this line:
var str = 'این یک @پیا.م تست است';
I can select it like this:
/@(.{5})/
But this is not what I need, because the length of this word, which is after @ , but before the space not always 5 . I really don't know why \w does not match Persian characters. Or even [a-zA-Z] doesn't work either.
Well, how can I do this?
stack source share