Implements "true" and "false" in regex replace. Fixes #292.