added regex support
compiler update
use regex in code-gen
add support for regex flags