Regular expressions

From MXnet
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



\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