Ruby flex regular expression matching extension
