Company of Heroes


ChatLog

First Previous 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 Next Last

user name message /\

mystiksoda

they just tell you it exists and that you should avoid using it

10bag

bro this attitude is why you struggle

mystiksoda

they don't really teach any regex in school at all

mystiksoda

wrong

10bag

you're moving goalposts

10bag

the regex is just for stripping chars you don't want though

10bag

?

mystiksoda

better yet, u lose actually

mystiksoda

u gain nothing

10bag

what's wrong with using replace for readability then?

mystiksoda

yes of course

10bag

bro he's gonna be trying to fix this code for the next decade, trust me

10bag

no i didn't but replacing characters in a string should be pretty ez

muktoakash

is the tts reading c-sharp as c-hash? I was quite confused for a bit

mystiksoda

10bag did you even take any time to read the doc u just linked???

10bag

the underlying api is some madly outdated microsoft thing though no

10bag

weren't you trying to write a python program around a 2005 library yesterday until i suggested you did it in c#? 4Head

10bag

https://docs.microsoft.com/en-us/dotnet/api/system.string.replace?view=net-6.0

mystiksoda

@XcomReborn don't listen to 10bag, they're trolling you

10bag

string replace or something? been a while since i wrote c#

10bag

readability is better than trying to make people think you're clever with regex bro

10bag

that way when your code breaks (which it definitely will) you'll understand it when you come back

10bag

why not just do string replace and cut out the regex

mystiksoda

oh yeah then it is right

mystiksoda

i think thats what u want at least

mystiksoda

@XcomReborn remove the \"^\" oin your regex

10bag

songs wants to buy respect bro i just want to be entertained

mystiksoda

wait what version of .NET are u even using atm?

10bag

i am rich beyond your wildest dreams bro

10bag

i'm not a full time unpaid programmer like you Kappa

First Previous 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 Next Last