![]() |
1
3
下面将介绍这个技巧。假设字符串在最后一次匹配之后结束。
|
![]() |
2
2
Assuming you can guarantee the input format, and it's just the last entry you want,
|
![]() |
3
0
使用string.split():
Edit: the array will have the string inside [] and then . and so on, so if you have a variable number of groups, you can use that to get the value you want (or remove the strings that are just '.') 编辑后将反斜杠添加到分隔符,以处理类似'\[abc\] edit2:对于嵌套的[]:
您在最后一个元素(索引3)中的[匹配]必须删除多余的] |
![]() |
4
0
您有几个选项:
工具书类 |
|
Robert King · Unity C#语法问题-转换位置 1 年前 |
![]() |
JBryanB · 如何从基本抽象类访问类属性 1 年前 |
|
law · 检查答案按钮的输入字符串格式不正确 2 年前 |
![]() |
i_sniff_ket · 在unity之外使用unity类 2 年前 |