How do I get the card number and device number alone from this string by using a regular expression to parse it?
Here's the string
~ $ arecord -l **** List of CAPTURE Hardware Devices **** card 0: usb device [usb device], device 0: Audio [Audio Input] Subdevices: 0/1 Subdevice #0: subdevice #0
I need to parse the "card 0" and "device 0". I just need the values 0,0
Any advice will be appreciated.