| using System; | 
| using System.Collections; | 
| using System.Collections.Generic; | 
| using System.Text.RegularExpressions; | 
| using UnityEngine; | 
| public class SuitNameAnalysis : TRichAnalysis<SuitNameAnalysis> | 
| { | 
|     public static Regex SuitName_Regex = new Regex(@"<Suitname=(.*?)/>\|{0,1}"); | 
|   | 
|     public override string Analysis(string val, bool IsRich) | 
|     { | 
|         if (!SuitName_Regex.IsMatch(val)) | 
|         { | 
|             return val; | 
|         } | 
|         int index = 0; | 
|         m_StringBuilder.Length = 0; | 
|         foreach (Match match in SuitName_Regex.Matches(val)) | 
|         { | 
|             m_StringBuilder.Append(val.Substring(index, match.Index - index)); | 
|             m_StringBuilder.Append(match.Groups[1].Value); | 
|             index = match.Index + match.Length; | 
|         } | 
|         m_StringBuilder.Append(val.Substring(index, val.Length - index)); | 
|         return m_StringBuilder.ToString(); | 
|     } | 
|   | 
|     public override string CalculateTextIndex(string val, int index) | 
|     { | 
|         return string.Empty; | 
|     } | 
| } |