user name /\ | message | ||
10bag |
this is cancer though | ||
10bag |
i wasn't poopooing regex in general yesterday bro | ||
10bag |
not the same problem | ||
10bag |
right yeah that's totally different to what you were doing yesterday - stripping a series of individual characters out of a string | ||
10bag |
you could do this with regex 4Head | ||
lord_shish |
^ | ||
10bag |
correct that guy's code and it looks way more readable than any regex ever will, that's all i'm saying bro | ||
10bag |
and the correction is in the top answer | ||
10bag |
this example you used just shows a guy not understanding the immutability of strings in python | ||
lord_shish |
if your code is infinite loopin without regex then its ur code bro | ||
10bag |
https://stackoverflow.com/questions/40432286/string-replace-in-a-while-loop-never-stops | ||
10bag |
bro i just read the SO link and it doesn't say what you think it does | ||
lord_shish |
think the problem is that your code is infinite looping | ||
lord_shish |
best to avoid if u can | ||
lord_shish |
regex is horrible | ||
xcomreborn |
bob | ||
xcomreborn |
hello | ||
cohopponentbot |
Hey guys! I am a bot connected via TwitchLib! | ||
cohopponentbot |
Closing TTS Bot. | ||
xcomreborn |
!closetts | ||
xcomreborn |
this bob this | ||
xcomreborn |
bob | ||
xcomreborn |
oh fuck | ||
xcomreborn |
test | ||
xcomreborn |
bob | ||
xcomreborn |
test | ||
cohopponentbot |
Hey guys! I am a bot connected via TwitchLib! | ||
lord_shish |
your name is definitely bob | ||
xcomreborn |
fred | ||
xcomreborn |
bob |