FYI, I recently had to write this same method to take
resource keys and make more human readable sentences.
So, maybe there is space for it in lang.

Stephen


 --- Gary Gregory <[EMAIL PROTECTED]>
wrote: 
> Hello,
> 
> This sounds like a job for regular expression
> substitution: "replace all
> uppercase chars with a space followed by that upper
> case char".
> 
> See the ORO project:
> http://jakarta.apache.org/oro/index.html
> 
> Gary
> 
> -----Original Message-----
> From: Eric Pugh
> [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, November 17, 2004 3:11 AM
> To: Commons-Dev
> Subject: [lang] Is there a split method based on
> case?
> 
> Hi all,
> 
> I am converting some classnames to user friendly
> names.  So I have a
> class
> call my.companies.own.SpecialStep and I can use the
>
substringAfterLast("my.companies.own.SpecialStep",".")
> to return
> "SpecialStep".  I want to convert this to "Special
> Step".  Any ideas on
> how
> to do this using commons-lang?  If I had
> AnotherSpecialStep, I'd want to
> split it up so I got "Another Special Step".
> 
> Would this be a good idea for commons-lang's
> WordUtils?
> 
> Eric
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to