Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27513

VS 2005 Regex Split Using Pipes

$
0
0
Hello,

I'm trying to split a string by using an regular expression splitting on Pipes. I also need to ignore any pipe within qoutes. The String being passed is below:

"Test|""Regex | Split""|Done|

This is the expression I'm using ""([^""]*)""|\| but I get a empty space for the pipes. I need only the data between the pipes. The output below

Test

Regex | Split

Done

Anyway I can get rid of these spaces?

Thanks in advance.

Viewing all articles
Browse latest Browse all 27513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>