[regexes] document some best practices