Difference between revisions of "Regular expressions"

From MXnet
Jump to: navigation, search
Line 7: Line 7:
 
Perl: find uppercase words.
 
Perl: find uppercase words.
 
:<pre> \b[[:upper:]]{2,}\b</pre>
 
:<pre> \b[[:upper:]]{2,}\b</pre>
 +
 +
== Links ==
 +
 +
* [https://www.tutorialspoint.com/perl/perl_regular_expressions.htm Perl Regular Expressions]

Revision as of 03:29, 24 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

Links