Thread: [Solved] Regex-pattern
View Single Post
 
Old 01-03-2025, 09:21 AM
gmaxey gmaxey is offline Windows 10 Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,601
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Batman1,


Thanks for the post. I see that your suggested pattern "requires" two or more words between the commas to return a match. So


, John, won't match but
, John smith, would.


A RegEx pattern master I am not. I wonder if it is possible to construct the pattern such that the last word (the word before the ending comma) must be captitalized e.g.,


,Gerd van Ackerman, matches
,Gerd van ackeramn, would not
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/