Sublime Forum

Which regex variant is in Sublime2?

#1

Perl, Posix, ??

0 Likes

#2

Syntax defs being an exception – they use Oniguruma for compatibility with TextMate.

0 Likes

#3

AFAIK, Boost is used instead.

0 Likes

#4

Both Onig and Boost support multiple regex syntaxes. It would be good to know exactly how each are initialized in sublime so that we know which documentation we should be looking at.

0 Likes

#5

Textmate, the original, used onigurama for regular expressions.
E and Sublime, seek to ensure compatibility with textmate grammars.
I’m pretty sure I’ve read sublime uses Boost regexes, it uses Boost in a lot of places actually.

As far as compatibility, a) it’s the perl variant, not posix variant. b) i’d check the textmate manual. Sublime tries to ensure compatibility with Textmate, and textmate right now has better documentation, so look there for the syntax you can use.

0 Likes