I have a string (an example of its value is {"id":"123241077871_4423423423414"}
) and I only require the part with the numbers and the underscore. However, my way of doing it with the String.Replace
method doesn't work. Can anyone help me?
This is what I've tried:
Settings.Default["lastid"].ToString().Replace('{"id":"'+"}',null);