DougInCanada
New member
- Joined
- Feb 14, 2013
- Messages
- 2
- Programming Experience
- Beginner
I'm trying to figure out how to change a trailing character using Regex Replace.
I have a text field for last name that I'm trying to standardize using Regex.
I'd like to change the trailing character from lowercase to uppercase every time an apostrophe occurs (ie: O'connor should be O'Connor) , a hyphen occurs (ie: Billy-bob should be Billy-Bob) or "Mac" or "Mc" occurs (ie: Macdonald should be MacDonald and Mcdougall should be McDougall).
Can anyone assist me?
Much appreciated,
Doug
I have a text field for last name that I'm trying to standardize using Regex.
I'd like to change the trailing character from lowercase to uppercase every time an apostrophe occurs (ie: O'connor should be O'Connor) , a hyphen occurs (ie: Billy-bob should be Billy-Bob) or "Mac" or "Mc" occurs (ie: Macdonald should be MacDonald and Mcdougall should be McDougall).
Can anyone assist me?
Much appreciated,
Doug