A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java Interview Guide
this week in the
Splitting a string
Joined: Mar 03, 2010
Mar 07, 2010 23:03:04
i want to split a
one output i want is a,c,e which has got prefix '@'
second output i want is is b,d,f which has got prefix '.'
i prefer a solution with regex please..
thanks in advance
Joined: Oct 27, 2005
Mar 08, 2010 00:52:38
. It has lots of information on regexes in
. Especially check out what capturing groups do.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
Joined: Oct 13, 2005
Mar 08, 2010 04:19:30
Rob Prime wrote:
Check out java.util.regex.Pattern. It has lots of information on regexes . . .
There is lots more information in the tutorials, eg
Joined: Sep 29, 2008
Mar 08, 2010 06:28:14
Why do you want to use regexes? I'm not convinced that's the easiest solution to this problem.
I agree. Here's the link:
subject: Splitting a string
fibonaccei with threads
Post increment and Pre Increment Precedence
Convert OutputStream data to String
prefix increment operator doesn't increment until after for loop has completed
detecting taglib present or missing
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015