Hey Im trying to extract certain information from a string. The String looks like
Name: music mix.mp3 Size: 2356KB
I would like to extract the file name only with the extension.
I dont have much knowledge in regex, so I was hoping to get some help here.
Thanks!
Please check this example:
const string str = "Name: music mix.mp3 Size: 2356KB";
var match = Regex.Match(str, "Name: (.*) Size:");
Console.WriteLine("Match: " + match.Groups[1].Value);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With