Last active
March 4, 2016 09:43
-
-
Save crazyrohila/fcd8e1dd7950ef1921f1 to your computer and use it in GitHub Desktop.
Sublime Regex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set title same as value attribute | |
Find: value="chart*(\w+)" | |
Replace: value="chart$1" title="chart$1" | |
Set title same as text within element | |
Find: title="chart*(\w+)">*(.+?>) | |
Replace: title="$2">$2 | |
Single attribute selection and replace | |
Find: ng-model=".+?" | |
Replace: ng-model="$1" ng-init="$1=''" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment