Split string using Regex (VB.Net)
-
terça-feira, 7 de agosto de 2012 10:19
Hello,
I think I actually want to do something pretty simple, but I am new at regular expressions. I have tried to read/use manuals, but the information is pretty much overwhelming, so I thought I'd ask for help.
The first idea is that I want to split the String on a comma (","c). This is really straightforward of course. However, I want to ignore comma's that are between brackets. So something like: "String1, Function(a, b), String2" should obtain 3 substrings ("String1", "Function(a, b)" and "String2").
Any suggestions?
Todas as Respostas
-
terça-feira, 7 de agosto de 2012 11:34
Excuse me, I'm not sure if I was blind earlier, or that the view changed with respect to my question, but I now see a previous question which is more or less the same. I guess I should try to see if I can work with that:
http://social.msdn.microsoft.com/Forums/en-US/regexp/thread/e0205447-58d3-40e0-90c2-8943473b2704
My apologies.
- Editado mglimmerveen terça-feira, 7 de agosto de 2012 11:34
- Marcado como Resposta Mike FengMicrosoft Contingent Staff, Moderator quinta-feira, 9 de agosto de 2012 03:47
-
quinta-feira, 9 de agosto de 2012 03:47Moderador
Hi Mglimmerveen,
Welcome to the MSDN Forum.
That's all right.
I think that similar thread should be help, too.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

