[英]how to get specific pattern of sub string from string c#?
如何從C#代碼中的字符串中獲取子字符串的特定模式?
輸入字符串,例如=>“ number”:123,“ object”:“ a”:“ b”,“ d”,“ e”:“ f” 2233“”“”“” king“
字符串數組中的子字符串=>“ number”“ object”“ a”“ b”“ d”“ e”“ f”“ king”
string substring = Regex.Replace(inpustring,“(\\” [0-9] + [\\“] {5} |:\\” [0-9] + \\“,)| [:,]”,“”) ;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.