Jun-23-2020, 06:31 AM
This should work
re.sub(r'(?:(?<=\s)|^)\w', lambda m: m.group(0).upper(), s)
Problem with regex
|
|
Messages In This Thread |
Problem with regex - by Emekadavid - Jun-22-2020, 10:52 PM
RE: Problem with regex - by Gribouillis - Jun-23-2020, 06:31 AM
|