Regular expressions: Difference between revisions

From Cor ad Cor
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:


Perl: find uppercase words.
Perl: find uppercase words.
\b[[:upper:]]{2,}\b
:<pre> \b[[:upper:]]{2,}\b</pre>

Revision as of 21:29, 23 January 2019

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

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

Kill the space by using this for the replacement field:

$1$2

Perl: find uppercase words.

 \b[[:upper:]]{2,}\b