Beispiel #1
0
        /// <summary>
        /// </summary>
        /// <param name="styleObject">样式对象</param>
        /// <param name="reg">正则表达式</param>
        /// <param name="regOption">匹配选项</param>
        public void Add(string styleObject, string reg, RegexOptions regOption)
        {
            RegexStruct regexStruct = new RegexStruct();

            regexStruct.styleObject = styleObject;
            regexStruct.regex       = new Regex(reg, regOption | RegexOptions.Compiled);
            _regexStructList.Add(regexStruct);
        }
Beispiel #2
0
 /// <summary>
 /// </summary>
 /// <param name="styleObject">样式对象</param>
 /// <param name="reg">正则表达式</param>
 /// <param name="regOption">匹配选项</param>
 public void Add(string styleObject, string reg, RegexOptions regOption)
 {
     RegexStruct regexStruct = new RegexStruct();
     regexStruct.styleObject = styleObject;
     regexStruct.regex = new Regex(reg, regOption | RegexOptions.Compiled);
     _regexStructList.Add(regexStruct);
 }