I am trying to use regular expressions to remove the information from a line read in from a text file, but keep hitting a problem when i hit the string 00:00:04.
The compleate line is eg:
root 1 0 0 Feb17 ? 00:00:04 init 
I just want the parts "root 1 init"
So i use the line
$line =~/^s*(w+)s*(d+)s*d*s*d*s*w+s*d+s* this is where the problem starts next part of line is 00:00:04
Can anyone fix this for me or show me how to get round the ':' problem