update post to use grep instead of perl + modernise regex