Remove trailing whitespace.
Add mappings to search using 'very magic' regexes.