VariablePattern function

Create a variable pattern.