Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

Need regular expression help

Thread view: 
meyousikmann@yahoo.com - 16 Nov 2007 21:09 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.