Problem Description
I have string "Վիկտոր1 Ափոյան2" using regular expression I want to get first letters of both strings. So as a result I will have "ՎԱ" As string is unicode I'm musing following regex:
"(\\p{L})\\p{L}*\\s(\\p{L})\\p{L}*
Which works fine if string does not contains numbers "1", "2", to get result I also tried with following regex:
"(\\p{L}\\p{N})\\p{L}\\p{N}*\\s(\\p{L}\\p{N})\\p{L}\\p{N}*
but this does not work correct.
Is there a something like "\\p{LN}" which will check for Unicode letters and numbers at the same time, or anyone knows how I can solve this issue?