Patcher.Rules.RuleCompiler.StripComments C# (CSharp) Méthode

StripComments() private méthode

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