Solved

reReplace help to fix first lower case after (

Posted on 2011-03-25
2
278 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

by Batuhan Cetin Regular expression is a language that we use to edit a string or retrieve sub-strings that meets specific rules from a text. A regular expression can be applied to a set of string variables. There are many RegEx engines for u…
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 …
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…

740 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