Solved

reReplace help to fix first lower case after (

Posted on 2011-03-25
2
276 Views
Last Modified: 2012-06-27
I have many strings of company names -- "Big Consulting Co (china) Ltd" as an example.  Note that the first letter after the "(" is lower case -- but should be upper case -- ie: "Big Consulting Co (China) Ltd".

I've tried to fix this using reReplace, as follows:

reReplace(thisString, "\([a-z]", "\([A-Z]")

Open in new window


but this does not work.

Can anyone help me understand the correct syntax to use?
0
Comment
Question by:ShanghaiD
2 Comments
 
LVL 15

Accepted Solution

by:
Tomarse111 earned 500 total points
ID: 35214089
This will give you title case:

#rereplace( v, "\b([a-z])", "\U\1", "ALL")#
0
 

Author Closing Comment

by:ShanghaiD
ID: 35214395
Thank you for the quick response!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question