private bool Evaluate(string tag) { if (this.Value == null || tag == null) return false; tag = tag.Trim().Replace("*", ".*"); // TODO: Cache? return Regex.IsMatch(this.Value, tag); } }