change flatPatternName regex to also match forward slashes