I have a regular expression to get the initials of a name like below:
/\b\p{L}\./gu
it works fine with English and other languages until there are graphemes and combined charecters occur.
Like
क
in Hindi and
ಕ
in Kannada
are being matched
But,
के
this one in Hindi,
ಕೆ
this one in Kannada are notmatched with this regex.
I am trying to get the initials from a name like J.P.Morgan, etc.
Any help would be greatly appreciated.