Corrects issue #3285. The '?' character after a group is not supported in POSIX Basic Regular Expressions. Replacing it with '\{0,1\}' retains the same functionality and also works on non-GNU systems.
DNS api usage:
https://github.com/acmesh-official/acme.sh/wiki/dnsapi