N
N
Nikita2019-07-15 17:34:35
Regular Expressions
Nikita, 2019-07-15 17:34:35

Replacing text with a regular expression. How right?

There is a text: abc:ABCD It is necessary
that it turns out like this: abc :
aBCD , and subsequent CAPSOM?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stockholm Syndrome, 2019-07-15
@WoT_Seller

^(.*)([:|;])([A-Z])([A-Z]*)$replaced by\1\2\L\3\U\4

D
Dmitry Derepko, 2019-07-15
@xEpozZ

If you are talking about a programming language, then write a callback function that will accept the search result and return the result.
In it, and make the conversion to lower case of the first character after :

0
0xD34F, 2019-07-15
@0xD34F

^(.*[:|;])([A-Z])([A-Z]*)$
change to
$1\L$2\U$3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question