A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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 Java. Especially check out what capturing groups do.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
Joined: Oct 13, 2005
Mar 08, 2010 04:19:30
Rob Prime wrote:
. 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.
subject: Splitting a string
Convert OutputStream data to String
Post increment and Pre Increment Precedence
fibonaccei with threads
detecting taglib present or missing
prefix increment operator doesn't increment until after for loop has completed
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014