How to use regular expressions
using System.Text.RegularExpressions;

...

String pattern = @"^\s*(\d+\.\d+)\s*(\w+):\s*(.+)$";
Regex regex = new Regex(pattern);
Match match = regex.Match(inLine);
if (!match.Success || match.Groups.Count != 4)
    return false;

See also the tutorial on CodeProject.

page_revision: 4, last_edited: 1241617801|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License