In the string
s = 'Makeupby Antonia #makeup #makeupartist #makeupdolls #abhcosmetics'
I want to match only word which does not start with #
. Means I want to select only Makeupby
and Antonia
I tried using negative lookahead assertion
re.findall(r'\b(?![#])[a-zA-Z]+',s)
['Makeupby',
'Antonia',
'makeup',
'makeupartist',
'makeupdolls',
'abhcosmetics']
But this is matching with all words. Where I am wrong?