Extract variable pattern char