I've got a file where I need to extract lines that start with "x" that is immediately suffixed only with a non-negative number and nothing more. For example, from the following lines:
x10
x111 116
x437 444
x2095
x2103 2104
x111
x2451 2506
x20
x10
x40 50
x57 58
x76
I need to extract these ones:
x10
x2095
x111
x20
x10
x76
It looks easy but the following regex doesn't work for me and I can't figure out why:
FINDSTR /R /C:"^x[0-9][0-9]*$" file.txt
Am I doing it wrong or is it another quirk in FINDSTR?