Regular Expression Problem

  • Thread starter Thread starter Stephan Rose
  • Start date Start date
S

Stephan Rose

Ok here's some example input data...

(asciiVersion 3 0)

my current regex string will make this out of that:

(
asciiVersion
3
0)

the problem is that last item... the 0 and ) need to be seperate.

This is my current regex string:

[^\\s]*(\\))|(\\()|(\".*\")|([^\\s]*)

Anyone have any idea how to modify this so that it will give the 0 and
) seperate? I've tried a dozen different things already and no luck.

I always end up getting 0) or just 0...but loosing the ) is a bad
thing :)

Thanks,

Stephan
 
Back
Top