Ext.Net.TokenUtils.ExtractIDs C# (CSharp) Method

ExtractIDs() private method

private ExtractIDs ( string script ) : List
script string
return List
        public static List<string> ExtractIDs(string script)
        {

            List<string> result = new List<string>();

            if (script.IsNotEmpty())
            {
                MatchCollection matches = ID_Pattern_RE.Matches(script);
                string id = "";

                if (matches.Count > 0)
                {
                    foreach (Match match in matches)
                    {
                        id = match.Value.Between("{", "}");

                        if (id.IsNotEmpty())
                        {
                            result.Add(id);
                        }
                    }
                }
                else if (!script.EndsWith("}"))
                {
                    result.Add(script);
                }
            }

            return result;
        }