So that I can use String[] mystring.split("regexp") in Java, can
someone give me the regular expression to split this string:
(0, 0.0.0.0-0.0.0.0), (1, 1.1.1.1-1.1.1.1), (2, 2.2.2.2-2.2.2.2)
into this:
(0, 0.0.0.0-0.0.0.0)
(1, 1.1.1.1-1.1.1.1)
(2, 2.2.2.2-2.2.2.2)
TIA
lord.zoltar@gmail.com - 16 Nov 2007 21:20 GMT
On Nov 16, 4:09 pm, meyousikm...@yahoo.com wrote:
> So that I can use String[] mystring.split("regexp") in Java, can
> someone give me the regular expression to split this string:
[quoted text clipped - 7 lines]
>
> TIA
Would this:
(\(.+\))\, (\(.+\))\, (\(.+\))
work for you?
Roedy Green - 17 Nov 2007 10:52 GMT
>So that I can use String[] mystring.split("regexp") in Java, can
>someone give me the regular expression to split this string:
see http://mindprod.com/jgloss/regex.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com