Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^#([\d]+[-]+[\d]+)\s+([a-zA-Z0-9\s*]+)$
"
gm

Description

		"id": "P01",
		"description": "starting with # and then digits and hyphen and then digits and one or more space",
		"regex": "^#([\\d]+[-]+[\\d]+)\\s+([a-zA-Z0-9\\s*]+)$",
		"inputField": "preProcessedMerchantName",
		"outputField": "cleanMerchantName",
		"isCaseSensitiveMatch": "false",
		"trimOutput": "true",
		"transformation": "T5"
Submitted by anonymous - 6 years ago