'Using Findstr to find a serial number in a line

I am using devcon to query a verifone device to get the serial number and I a trying to find the serial number below "123-552-666" and output that to a text file. I have been playing around with various commands but just cant seem to get it.

I have used this:

findstr /RC:"[0-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9]" "verifone1.txt"

But just got this lie returned USB\VID_11CA&PID_0300\123-552-666_____

Below is the full data I am searching. Would appreciate any assistance

USB\VID_11CA&PID_0300\123-552-666_____ Name: Verifone V,P Family USB UART device (COM7) Driver is running.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source