Make sure regex matches so "Not needed" doesn't raise a warning.