View Single Post
Old 12-20-2018, 11:03 AM   #1
BlackCanopus
Junior Member
BlackCanopus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2018
Device: Android Phone, Samsung Galaxy Note 5, Moon + Reader Pro
RegEx question: Phrases starting with a small letter only

Hi

I am new to RegEx, but I want to use 'Tag mapper' and RegEx to put my tags in order (I imagine you are already cursing me ).

I want to capitalize all the tags that begin with a small letter.
My ideal conversion is "this test" -> "This Test" but I think it cannot be. So, "this test" to "This test" will also do.

I tried this:
Tage mapper > Capitalize the tag, if it matches pattern:
Code:
^[a-z].+?$
It capitalizes phrases such as:
Code:
this test
but it also capitalizes phrases such as
Code:
John Milton
and converts it to
Code:
John milton
I don't want that to happen. This phrase is already capitalized, it does not beging with a small letter, why does the RegEx statement validate it?

It seems I'm doing something wrong. Your help would be appreciated.
BlackCanopus is offline   Reply With Quote