Sublime Forum

ST2: regex behaves different on Mac and Linux

#1

I was trying to grab all the function definitions from a header file to create snippets and I noticed this quirk.


On Mac OS X 10.6.8 (left), the regular expression (.+) grabs an entire line. On Ubuntu 12.10 (right), the same regular expression misses the trailing “);”.

0 Likes

#2

This is because you have whole words toggle turned on for linux, but not for mac

0 Likes