I've been trying to do this forever. I can match first letter of every word, but I can't exclude words which are in braces.
For example:
I can't (do) this, please (help) me.
So this should match - I
, c
, t
, p
, m
- only.
Using \b\w
only matches first letters of the word, it doesn't exclude words in braces. I've tried also negative lookahead, but seems like I can't do it properly:
(?!\(()\))\b\w
Also I've got the problem with the unicodes. Using (?:^| )[a-z]{1}
or \b\w
only matches latin letters and I sometimes will have different unicodes, for example:
I am (someone) ვიღაც.
And in this situation regex will only match I
, a
and s
, not ვ
. Thanks