Home Download Buy Blog Forum Support

Which regex variant is in Sublime2?

Which regex variant is in Sublime2?

Postby hstimer on Sat Sep 10, 2011 2:26 am

Perl, Posix, ??
hstimer
 
Posts: 11
Joined: Tue Sep 06, 2011 11:04 am

Re: Which regex variant is in Sublime2?

Postby guillermooo on Sat Sep 10, 2011 6:57 am

Syntax defs being an exception -- they use Oniguruma for compatibility with TextMate.
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: Which regex variant is in Sublime2?

Postby guillermooo on Sat Sep 10, 2011 2:16 pm

AFAIK, Boost is used instead.
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: Which regex variant is in Sublime2?

Postby hstimer on Sat Sep 10, 2011 10:30 pm

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.
hstimer
 
Posts: 11
Joined: Tue Sep 06, 2011 11:04 am

Re: Which regex variant is in Sublime2?

Postby ajpalkovic on Sat Sep 10, 2011 11:55 pm

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.
ajpalkovic
 
Posts: 142
Joined: Fri Jun 10, 2011 10:21 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 21 guests