python - Split string using Regular Expression that includes lowercase, camelcase, numbers -
i'm working on twitter trends using tweepy in python , i'm able find out world top 50 trends sample i'm getting results these
#brazilianfansarethebest, #psypagtuklas, federer, corcuera, ouvindo anti, 艦これ改, 영혼의 나이, #tododiaédiade, #tronochicas, #이사람은_분위기상_군주_장수_책사, #otwolknowyourlimits, #baein3words, #noentiendoporque (please ignore non english words)
so here need parse every hashtag , convert them proper english words, checked how people write hashtag , found below ways -
#thisisawesome #thisisawesome #thisisawesome #thisisawesome #thisisawesome #thisisawesome123 (some time hashtags have numbers well)
so keeping these in mind thought if i'm able split below string above cases covered.
string ="pleasehelpmesplitthisstring8989" result = please, help, me, split, this, string, 8989 i tried using re.sub not giving me desired results.
Comments
Post a Comment