Patcher.Rules.RuleCompiler.StripComments C# (CSharp) Method

StripComments() private method

private StripComments ( string text ) : string
text string
return string
        private string StripComments(string text)
        {
            return Regex.Replace(text, @"(@(?:""[^""]*"")+|""(?:[^""\n\\]+|\\.)*""|'(?:[^'\n\\]+|\\.)*')|//.*|/\*(?s:.*?)\*/", "$1");
        }