randy3k / AlignTab

An alignment plugin for Sublime Text using regular expression

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doubling of separator

opened this issue · comments

Hi! When I try to align something looking like this:

1 a 2 b 3
11 a 22 b 33

with expression (a|b) I get as result:

1  a a 2  b b 3
11 a a 22 b b 33

Is this a bug? I need this for alignment some sql expressions.

I'am sorry. Following recomendation to use non-capturing parenthese (?:a|b) solves this issue.

actually, you don't have to do the parenthesis, just a|b will be okay.