Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?P<claim_number>\d{10,50})(\s+)(?P<ID>\d{1,10})(\s+)(?P<feature_type>[a-z-]{2,50})?(\s+)(?P<loss_location>(\w[.'\s#\/;@`&\w,%\-]*)+)?(?P<state>[a-zA-Z]{2,5})?(\s+)(?P<status>[a-zA-Z]{1})?(\s+)[$]?(?P<feature_reserve>[+-]?(\d*(,\d+)*(.)(\d+)))?(\s+)[$]?(?P<feature_paid>[+-]?(\d*(,\d+)*(.)(\d+)))?(\s+)[$]?(?P<alae_reserve>[+-]?(\d*(,\d+)*(.)(\d+)))?(\s+)[$]?(?P<alae_paid>[+-]?(\d*(,\d+)*(.)(\d+)))?(\s+)
"
igm

Description

no description available

Submitted by anonymous - 5 years ago