code: private static Pattern compileAssignPattern(String name) {
          return Pattern.compile(
                  String.format("\\b(__)?%s(__)?\\b *= *(['\"]+)(.*?)\\3", name),
                  REGEX_OPTIONS);
      }
docs: Utility function to create a regex pattern matcher.
  
  @param name the value to use when constructing the assignment pattern
  @return the compiled Pattern