Sublime Forum

GREP search/replace question, is this possible with ST2

#1

I have many tags like this: <td colspan="2" align="LEFT"> where someone has put some attributes in uppercase.

Can ST2 find all instances of ANY text in uppercase and make it lowercase?

I seem to remember Textmate having a switch to insert the replaced text as lowercase, but I forget what it is and if ST2 has the same functionality.

Thanks.

0 Likes

#2

Sublime Text 2 supports regular expressions, and those can change the case of letters:
google.com/search?btnG=1&pw … ase+change

0 Likes

#3

@adzenith good to know. thanks for sharing
@handycam to answer your question try something between the lines of

find: (<^>]*>)
replace: \L$1\E
0 Likes

#4

[quote=“vitaLee”]@adzenith good to know. thanks for sharing
@handycam to answer your question try something between the lines of

find: (<^>]*>) replace: \L$1\E [/quote]

Yes, that did it, thank you

0 Likes