Sublime Regex

Here’s how you find and replace using Regex in Sublime Text 2

Find: (^.[0-9]),

Replace: 00\1,

This finds a number at the beginning of a line up to a comma and replaces it with 00 and the originally matched number and the original comma

Make sure you have selected the “.*” button in the find/Replace view for regex

Advertisements

Leave a comment

No comments yet.

Comments RSS TrackBack Identifier URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s