Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

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

Description

"id": "P011", "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": "storeNumStr", "trimOutput": "true", "transformation": "T2"

Submitted by anonymous - 6 years ago