Improve regex extraction with flags and better print