Solved

reReplace help to fix first lower case after (

Posted on 2011-03-25
2
273 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
Comment Utility
This will give you title case:

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

Author Closing Comment

by:ShanghaiD
Comment Utility
Thank you for the quick response!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now