changed option from string to regex
Land #3186, OptString should be OptRegexp