[IMP] support regexp flags