+ 1
How to get a certain part of user input
I'm coding a roblox exploit and I'm new to c#. say if I wrote "ws Aerial 100". how would I get the "Aerial" and the "100" out of it and make it reply "Walkspeed set to: 100 for: Aerial
1 Answer
+ 1
try regular expression, a way to match and find certain pattern in a string.
Have a read on these articles:
https://regexone.com/references/csharp
https://support.microsoft.com/en-us/help/308252/how-to-match-a-pattern-by-using-regular-expressions-and-visual-c
I have made a try to solve this question:
https://code.sololearn.com/cNB0P9EEKE3n/#cs
I haven't used C# in coding before, you can modify the code and make it better.