I want to extract a Model Number from string ,
/dev/sda:
ATA device, with non-removable media
Model Number: ST500DM002-1BD142
Serial Number: W2AQHKME
Firmware Revision: KC45
Transport: Serial, SATA Rev 3.0
Regex I wrote,
re.search("Model Number:(\s+[\w+^\w|d]\n\t*)", str)
But issue is, its not matching any special characters (non ascii) in string str
Python 2.6
Note: String can be combination any characters/digits (including special)