check for regex based on leading / only