private static Pattern compileAssignPattern ( String name ) { return Pattern . compile ( String . format ( "\\b(__)?%s(__)?\\b *= *(['\"]+)(.*?)\\3" , name ) , REGEX_OPTIONS ) ; }
Utility function to create a regex pattern matcher .