Ruby's Regularity regex library ported to R