Tag Info

Hot answers tagged


Sublime's multiple cursors are really powerful. Combined with regular expressions, you can do a lot of cool things within the editor, including this. Hit Ctrl+F to open the Find drawer. Make sure Regular Expressions are turned on (Alt+R to toggle). Type (.|\n){1,160}[ .!?]. If you hit Enter a few times, you'll see each page selected in turn. Hit Alt+Enter ...


Simple using JREPL.BAT - a hybrid JScript/batch utility that performs regular expression search and replace on text. JREPL.BAT is pure script that runs natively on any Windows machine from XP onward. Solution 1 doing some of the work with JREPL and some with batch: @echo off setlocal disableDelayedExpansion set n=0 for /f delims^=^ eol^= %%A in ( 'jrepl ...

Only top voted, non community-wiki answers of a minimum length are eligible