variablePatternStr function

Return the variable pattern (string form).