Regular Expressions 101

Community Library Entry

0

Regular Expression
Python

r"
(?P<ipc_cpc_fi>\b(?P<section>[A-HY])(?(section)(?P<class>\d{2})?)(?(class)(?P<subclass>[A-Z])?)(?(subclass) *(?P<group>\d{1,})?)(?(group)(?:/(?P<subgroup>\d{1,}))?)(?(subgroup) *(?P<subsubgroup>[A-Z]?))\b)
"
gm

Description

ipc cpc fi

Submitted by anonymous - 5 years ago