Difference between revisions of "Regular expressions"

From MXnet
Jump to: navigation, search
Line 1: Line 1:
 
Find capital letter, period, space, capital letter, period.
 
Find capital letter, period, space, capital letter, period.
:<pre>/[A-Z]\.\s[A-Z]\./g</pre>
+
:<pre>([A-Z]\.)[ ]([A-Z]\.)</pre>
 +
 
 +
Kill the space by using this for the replacement field:
 +
:<pre>$1$2</pre>

Revision as of 07:32, 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