0
I am building a regex to filter out any substrings beginning with '#' or '@'. I am trying to filter tweets from those. Currently it matches everything no matter if the string contains words beginning with a '#' or '@'.
((?!\#)|(?!\@)).*
In this string below I want to match everything in bold, but no more:
Hi shah rukh. Who is your co-actor in the upcoming movie? @iamsrk #lovefrommalaysia #askSRK
I want to keep the whitespaces between the words in bold. How can I achieve this? This will be used in python FYI.
Inverse problem here: http://superuser.com/q/820361/76571
– Excellll – 2015-08-06T14:17:48.887@Excellll That's what I did, see my answer below. – Linus – 2015-08-06T14:18:41.277