FEATURE: make discourse remap optionally do regex_replace (#4367)
FEATURE: make discourse remap optionally do regex_replace (#4367)

This adds a --regex option to discourse remap to use the regexp_replace
feature in PostgreSQL. Example usage:

discourse remap --regex "\[\/?color(=[^\]]*)*]" ""

removes all the "color" bbcodes.

Also, this commit fixes the --global option, which did not work because
of how Thor processes the options.
natefinch/discourse,natefinch/discourse