sublimetext3sublimetext2sublimetextsublimetext4

What regex syntax does Sublime Text use?


What regex syntax does Sublime Text use? POSIX? POSIX Extended?


Solution

  • Sublime Text's Find and Replace functions, along with snippets, are powered by Boost's (Perl-Compatible Regular Expressions) engine. For syntax highlighting, Sublime Text 3 and 4 use a custom -compatible engine, with fallback to Oniguruma itself, for .sublime-syntax files. Oniguruma is used for the older tmLanguage format, and was the only engine used for syntax highlighting in Sublime Text 2.