I'm currently trying to split a string in C# (latest .NET and Visual Studio 2008), in order to retrieve everything that's inside square brackets and discard the remaining text.
E.g.: "H1-receptor antagonist [HSA:3269] [PATH:hsa04080(3269)]"
In this case, I'm interested in getting "HSA:3269" and "PATH:hsa04080(3269)" into an array of strings.
How can this be achieved?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…