Locked 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