Difference between revisions of "Regular expressions"

From MXnet
Jump to: navigation, search
Line 5: Line 5:
 
:<pre>$1$2</pre>
 
:<pre>$1$2</pre>
  
 
+
Perl: find uppercase words.
  [~a-z0-9\s]
+
  \b[[:upper:]]{2,}\b

Revision as of 15:28, 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.

\bupper:{2,}\b