Added /o flag to regexps for speed