in reply to Parse colon-delimited data
Depends on what you want exactly, this extracts the names and number into seperate variables:
@data=/^([\w ]+?)\s+:\s+(\d+)\s+\((\d+)\s+(\d+)\)/;
If you can guarantee that some of those spaces will always be single spaces, you can change many of the \s+ into plain spaces " "
HTH
|
|---|