Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?:^|(?:, *))((?:[a-zA-Z0-9_]+ *= *)?(?:\"[^\"]*?\"|\'[^\']*?\'|{.*?}|\${[^, ]*?(?:\(.*\))}|\[.*?\]|(?:[^, \"\'\n])+))(?=(?:, *)|$)
"
gm

Description

NUTS Expression: split the args

Submitted by anonymous - 4 years ago