Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What regex syntax does Sublime Text use?

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

like image 201
Louis Avatar asked Jun 14 '26 13:06

Louis


1 Answers

Sublime Text's Find and Replace functions, along with snippets, are powered by Boost's pcre (Perl-Compatible Regular Expressions) engine. For syntax highlighting, Sublime Text 3 and 4 use a custom oniguruma-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.

like image 62
MattDMo Avatar answered Jun 18 '26 00:06

MattDMo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!