I'm defining a new class. Two issues:
Match m = Regex.Match(text, pattern, RegexOptions.IgnoreCase, TimeSpan.FromSeconds(1));
Gives this error: "No overload for method 'Match' takes 4 arguments". But the MSDN defines this with 4 args.
catch (RegexMatchTimeoutException)
Gives this error: "The type or namespace name 'RegexMatchTimeoutException' could not be found (are you missing a using directive or an assembly reference?)"
My using directives:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
I'm running VS2008Express with .NET4.5