style the regex flags, add link to docs