Skip to content
Sign UpLog In
Profile icon

header

@header
Repls
Community
header
header
shared a Post
2 years ago
How would I make it so it doesn't trim the string inside the of the '*' Symbols
I'm trying to make a print command pretty much because my friends are bullying me to do so and I desperately need some help, thank you. Question: How
Furry-Script test1
C#
Coder100
Coder100
working repl here: https://repl.it/@Coder100/GlaringHideousCommand#main.cs2 years ago
Coder100
Coder100
Something like: string input = "say(hello world)"; // Use Regex.Replace to replace the pattern in the input. string output = Regex.Replace(input, @"say\(\(.+)\\)", "$1"); `2 years ago
Coder100
Coder100
Your error is because: string trimmed = cmd.Trim(,'s','a','y','(','','',')'); there's an extra ,: ,'s', so it becomes: string trimmed = cmd.Trim('s','a','y','(','','',')'); but that won't work either because that's not how trim works.2 years ago