I've been working on my own simple Wikipedia parser in C#. So far I'm not getting very far because of this problem.
I extract the string {e|24}
but it could contain any number. All I want to do is simply extract the number from this string.
This is the code I am using currently:
Match num = Regex.Match(exp.Value, "[0-9]*");
Console.WriteLine(num.Value);
However num.Value
is blank.
Can someone please explain why this is not working and how I can fix it?