rewrite to avoid "Regular Expressions is pretty deep subject"