Regular expressions: Difference between revisions

From Cor ad Cor
Jump to navigation Jump to search
No edit summary
No edit summary
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 13: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