Assuming you are copying that to your program and not writing it out, as well as {} separating your "sets", and | separating your words you could just do
text = ''' {{howdy|hey|hey there|heyyy|hi cutey|hi there =)|sup|heyy|hey hey|heyyy|hiya|heya|heyyyy|hello there|hey babes|hey sexy|hey heyy|hi there}{..|.|,|...} {thanks|thnx|thank you|ty} {4|for} the {follow|add}{...|.|..} {whats up|what's up|what is up|what you up to|what u up to|what ya up to|how ya doing|how you dhow ya doin|how you doin|whats going on|what is going on|what's going on|what is goin on|whats goin on|what's goin on|how are ya|how are you|how are u}{?|??|???} {nm|not much|chilling|chillin|relaxing|relaxin|hanging out|hangin out|chillin out|chilling out|lounging out|coolin out} {here|over here}{.|,} {txt me|t xt me|tx t me|t.xt me|tx.t me|t.x.t me|text me|t ext me|te xt me|tex t me|t.ext me|te.xt me|tex.t me}{...|} {i am|im|i'm} {downright|flat out|terribly|extremely|really|super|absolutely|truly} bored{.|..|...} %s {..|....|..} ''' for element in text.split('}'): print(element.split('|'))
Output:['\n{{howdy', 'hey', 'hey there', 'heyyy', 'hi cutey', 'hi there =)', 'sup', 'heyy', 'hey hey', 'heyyy', 'hiya', 'heya', 'heyyyy', 'hello there', 'hey babes', 'hey sexy', 'hey heyy', 'hi there']
['{..', '.', ',', '...']
[' {thanks', 'thnx', 'thank you', 'ty']
[' {4', 'for']
[' the {follow', 'add']
['{...', '.', '..']
[' {whats up', "what's up", 'what is up', 'what you up to', 'what u up to', 'what ya up to', 'how ya doing', 'how you dhow ya doin', 'how you doin', 'whats going on', 'what is going on', "what's going on", 'what is goin on', 'whats goin on', "what's goin on", 'how are ya', 'how are you', 'how are u']
['{?', '??', '???']
[' {nm', 'not much', 'chilling', 'chillin', 'relaxing', 'relaxin', 'hanging out', 'hangin out', 'chillin out', 'chilling out', 'lounging out', 'coolin out']
[' {here', 'over here']
['{.', ',']
[' {txt me', 't xt me', 'tx t me', 't.xt me', 'tx.t me', 't.x.t me', 'text me', 't ext me', 'te xt me', 'tex t me', 't.ext me', 'te.xt me', 'tex.t me']
['{...', '']
[' {i am', 'im', "i'm"]
[' {downright', 'flat out', 'terribly', 'extremely', 'really', 'super', 'absolutely', 'truly']
[' bored{.', '..', '...']
[' %s {..', '....', '..']
['\n']
and yes it would need a little customizing
Recommended Tutorials: