所以我想找出a中特定括号之间的内容richtextbox.例如:
if (richTextBox1.Text.Contains("testname(") {
// Find what is in brackets of testname()
String outcome = //what is in brackets of testname()
}
Run Code Online (Sandbox Code Playgroud)
这可能很难理解,但让我们说这是richtextbox:
testname(name)
Run Code Online (Sandbox Code Playgroud)
然后字符串结果将是name.
c# ×1