Subject: Re: [xsl] Formatting string From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 16 May 2007 15:36:34 +0200 |
Jesper Tverskov wrote:It is impossible to come up with a REGEX that can handle any combination of upper case and lower case. What about PaulMcCartney or JFK? If pascal notation is not used, XxxxXxxxx, or a similar strict pattern, a REGEX solution is only possible if we know all input strings from the start.
all provided solutions work with any combination of upper case and lower case. Which of the examples did you try?
PaulMcCartney would become Paul Mc Cartney with any of them.
1. O'Reilly >>>> O'Reilly 2. McDonald's >>>> McDonald's 3. Paul McCartney >>>> Paul McCartney 4. J.K.Rowling >>>> J.K. Rowling (?) 5. JKRowling >>>> J K Rowling (?) 6. JFK >>>> JFK 7. BankOfUSA >>>> Bank Of USA
Cheers -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Formatting string, Abel Braaksma | Thread | Re: [xsl] Formatting string, David Carlisle |
Re: [xsl] Convert xml to html with , Florent Georges | Date | Re: [xsl] Formatting string, Dimitre Novatchev |
Month |