That's not really what the ASA is designed to do. That's more the work of something like Apache mod_rewrite, Cisco ACE, or F5 BIG-IP. The ASA is geared toward matching regular expressions, equivalent to UNIX's grep, not altering things, like UNIX's sed...