I have file.txt
with a line that is just like this...
{ "success" : { "id" : "18" } }
How can I ignore all of that, and get just the number (18) and store it in a variable so I can use it?
Note, the number may change, it won't always be 18, and could be 1 to 3 digits.
I've been playing around with for but can't seem to get the tokens right cause the number is surrounded by quotes
for /F "tokens=*" %%A in file.txt) do (
)