in reply to Frustration With regex
Also, for parsing IRC mode lines, consider looking at Parse::IRC to split up the line into its interesting parts.