Patcher.Rules.RuleCompiler.StripComments C# (CSharp) 메소드

StripComments() 개인적인 메소드

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