rc.d/wg: Match wg ifnames on wg_start
Specifying wg_interfaces="wg0" in /etc/rc.conf causes:
ifconfig: ioctl SIOCSIFNAME (set name): File exists
The interface name matching in the wg script is not matching the
'wg' interfaces thus trying to set a custom interface name.
Apparently expr does not interpret '+' from regex:
$ expr 'wg0' : 'wg[0-9]+$' && echo matched
0
Workaround it by using already working expr usage:
$ expr 'wg0' : 'wg[0-9][0-9]*$' && echo matched
3
matched
There is no need to anchor the beginning of line with ^ since
expr already does that.