user name /\ | message | ||
10bag |
you ever tried test driven development? | ||
cohopponentbot |
Closing TTS Bot. | ||
xcomreborn |
!closetts | ||
lord_shish |
why are you returnign empty string then wondering why its returning empty string 4Head | ||
lord_shish |
here is some test data 8==============================D | ||
xcomreborn |
doh | ||
xcomreborn |
hello | ||
cohopponentbot |
Hey guys! I am a bot connected via TwitchLib! | ||
cohopponentbot |
Closing TTS Bot. | ||
xcomreborn |
!closetts | ||
10bag |
you're giving instructions to the computer, not requests | ||
10bag |
bro my advice is don't try anything, just do it | ||
10bag |
can't you do this with stringbuilder? | ||
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 |