in reply to Regex for matching a word followed by digits plus :

It fails to match because the pattern isn't found in those strings. If "OUTPUT" indicates the output you desire, the pattern should be
/-\s(\w+)[.0-9]*\s:/
or just
/-\s(\w+)/

Replies are listed 'Best First'.
Re^2: Regex for matching a word followed by digits plus :
by happy.barney (Friar) on Feb 20, 2011 at 08:39 UTC
    /-\b(\S+)\b\s:/ ?
      That would not produce the provided output.
        oops typo :-)
        first \b should be \s