System.Text.Regex off limits?

I tried uploading a script that makes use of regular expressions and got this error message:

Here are some of the offending lines:

 if (UnitName.StartsWith("^") && UnitName.EndsWith("$")) {
return Regex.IsMatch(this.UnitName, UnitName, RegexOptions.IgnoreCase);

string Pattern = Regex.Replace(UnitName, "[^A-Z0-9]", Match => {
if (Match.Value == "*") return ".*";
return "\\" + Match.Value;
return Regex.IsMatch(this.UnitName, Pattern, RegexOptions.IgnoreCase);

Are regular expressions really off the table for now, or have I done something wrong?



Please sign in to leave a comment.