I want to find a command in windows equivalent to the following command in linux:
cat file.txt | grep -oP '\d{5}-\d{5}'
Out
99527-86793
with:
findstr /R "pattern" file.txt
I try this but it works partially.
findstr [0-9]-[0-9] file.txt
Out:
de4f2114-847c-4cf2-8a0b-a38d04c0fdac1/1
99527-86793
How can I delimit the output to only those numbers: start and end 5 numbers 0 to 9 - 5 numbers 0 to 9 ?
thk