Reputation: 75
Hello everyone i have some texts that looks like this
jameskach
--> JamesKach
firefighter11
--> FireFighter11
attackontitan
--> AttackOnTitan
lazyperson
--> LazyPerson
Not all the texts are the same, i was just showing some examples, any help is appreciated
Upvotes: 1
Views: 6454
Reputation: 7146
Regex to match & group first character :
^(.)
What to replace with :
\U\1
(the \1
means the first matching group.)
Upvotes: 6