public Regex(string pattern) { if(pattern != null) { this.regex = new System.Text.RegularExpressions.Regex(pattern, System.Text.RegularExpressions.RegexOptions.IgnoreCase); } else { throw new ArgumentNullException(); } }