@Davidslv first comment, thanks!
It's actually the POSIX syntax which Ruby finally caught up with. Also, it's not equivalent, since the `[[:alnum:]]` group accepts uppercase characters.