c# - Matching letters with accent -


i have following regex, use split letters , numbers when joined:

(?<=\p{l})(?=\p{n})  asd123 //match وس123  //match (right left) وَ123   //no match (the accent not matched) 

if letter have accent (diacritics) not matched. tried adding \p{m} catches diacritics can't seem make work.

i did simple mistake not including "?" after \p{m}. without "?" become mandatory , not optional in case is.

(?<=\p{l}\p{m}?)(?=\p{n}) //for single diacritic mark (?<=\p{l}\p{m}\p{m}?)(?=\p{n}) //for single double mark (in arabic) 

Comments