Regular expressions

From MXnet
Revision as of 16:44, 26 May 2019 by Mxmsj (talk | contribs)
Jump to: navigation, search

Find everything up to a tab


Find capital letter, period, space, capital letter, period.

([A-Z]\.)[ ]([A-Z]\.)

Kill the space by using this for the replacement field:


Perl: find uppercase words.


find capital letter at the end of a line, insert period before newline



find period, capital letter at the end of a line


find lowercase characters one-at-a-time



\L\1\n -- lowercases everything

\L2\1\n -- inserts 2, space, lowercase of the string

\L$2\1\n -- does not insert 2, lowercases string

\U\L\1\n -- lowercases everything

find ch.vv and change it to ch:vv:

^([0-9]+^).^([0-9]+^) = find things like 23.16

^1:^2 = change the period into a colon 23:16