the O'Reilly folks have a nice package of RegExp classes available.
Joe Niski | Senior Software Engineer/Internet Architect
Nine Dots
503.548.2176
Portland . Irvine . San Francisco . Toronto
[EMAIL PROTECTED]
> -----Original Message-----
> From: Vijay Menon [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 19, 2001 3:22 AM
> To: JRun-Talk
> Subject: Re: String processing
>
>
> Use the StringBuffer class; its also less wasteful as it is mutable
>
> ----- Original Message -----
> From: "C. Schmitz" <[EMAIL PROTECTED]>
> To: "JRun-Talk" <[EMAIL PROTECTED]>
> Sent: Thursday, July 19, 2001 7:35 PM
> Subject: String processing
>
>
> > Hi,
> >
> > I am new to Java and JRun and am currently developing my first
> > application,
> > a small invoice tool.
> >
> > I'd like to know how I can replace certain parts of a string with
> > another
> > expression. I currently am using String.indexOf("whatever") and then
> > reassemble the string with the expressions I need.
> >
> > Isnt't there a more comfortable method to replace substrings? I
> tried
> > String.replace(), but, it seems this method can only replace a
> single
> > character... I also thought about regular expressions, but, didn't
> > find
> > appropriate methods...
> >
> > Chris
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists