public LSL_Integer osRegexIsMatch(string input, string pattern) { CheckThreatLevel(ThreatLevel.Low, "osRegexIsMatch"); m_host.AddScriptLPS(1); try { return Regex.IsMatch(input, pattern) ? 1 : 0; } catch (Exception) { OSSLShoutError("Possible invalid regular expression detected."); return 0; } }