Sublime Forum

Regular Expression is not working correctly in latest build (3126) mac

#1

I have a file with lines like this:

2011-2010_111118_SN484_0130_AD0CCDACXX_7_sequence.txt.gz
2011-2010_120120_SN484_0147_BD0MEKACXX_7_1_sequence.txt.gz
2011-2010_120120_SN484_0147_BD0MEKACXX_7_2_sequence.txt.gz
2011-2010_120120_SN484_0147_BD0MEKACXX_8_1_sequence.txt.gz
2011-2010_120120_SN484_0147_BD0MEKACXX_8_2_sequence.txt.gz
2011-2011_111118_SN484_0130_AD0CCDACXX_7_sequence.txt.gz

When I do search with find and replace and start typing “/d/d” it does not search for the lines starting with digits. In between it worked also but it is erratic. On sublime text 2 it works properly I think there is some glitch.

0 Likes

#2

why would it find anything? you are searching for a literal forward slash followed by a literal d character followed by a literal forward slash followed by a literal d character anywhere on the line…

try ^\d{2} instead and make sure you have the regex mode enabled

0 Likes