Regular Expressions 101

Community Patterns

keyvalue

0

Regular Expression
Python

r"""
(?<==)(['"])?[^'"]+(?(1)\1|\s)
"""
gm

Description

value part of key=value key='value' key="value" value can have spaces if quoted

Submitted by anonymous - 5 years ago