Sublime Text Editor for Text Editing

by John H
2 minutes

sublimeregexUsing Regular Expressions To Format Text in Sublime Text.

I use Sublime Text to clean up text all of the time.  It is absolutely the fastest and easiest way to make neat lists or to grab a bunch of text and convert it to arrays or whatever.

Why is it so awesome? Because it is a text editor on steroids.

How is it so awesome? Because it has regular expressions built in to its text searching. YAY!

It is even faster for searching in code especially if you are utilizing id, name, label, or class tags.

Some Quick Searches

Look ahead

(?<=SELECT EVERYTHING AFTER THIS).+

Look Behind

(?=SELECT EVERYTHING BEHIND THIS).+

Look Between

(?<=SELECT EVERYTHING).+(?=BETWEEN THIS)

Select All text Between paragraph tags

(?<=

).+(?=

)

Cleaning up things

Select Empty Lines

^\n

Selecting all Opening Links


Select all Closing Anchor Tags




I'll add to this list as I think of helpful regular expressions

Related Articles

AWS Cognito for Facebook Login

Excellent videos covering setting up and implementing AWS Cognito for a web app. This is a great...

John H John H
~1 minute

Working and testing redirects for Apache

Working and testing out redirects for Apache To work on a testing local install of the site make...

John H John H
5 minutes

Move Wordpress from folder to root domain

When you start a wordpress blog you might want to set it up in a folder called blog - or...

John H John H
~1 minute