Split string using Regex (VB.Net)
-
Tuesday, August 07, 2012 10:19 AM
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?
All Replies
-
Tuesday, August 07, 2012 11:34 AM
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.
- Edited by mglimmerveen Tuesday, August 07, 2012 11:34 AM
- Marked As Answer by Mike FengMicrosoft Contingent Staff, Moderator Thursday, August 09, 2012 3:47 AM
-
Thursday, August 09, 2012 3:47 AMModerator
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.

