+ 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

21st Dec 2017, 9:18 PM
Aerial
Aerial - avatar
1 Odpowiedź
+ 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.
23rd Dec 2017, 4:17 AM
Hanz
Hanz - avatar