Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
vsah
· 12y ago · 0 comments
No in this case the regex on the bottom only applies the . to the square in question while the \sSAI in question applies to the second square. It seems that it could be a I or a T.
Comments
[–]
kbuck
12y ago
(\sSAI) is a group, not a character class. It matches the fixed string " SAI" and stores it in a group. If it were [\sSAI], you'd be correct.