Regular Expressions 101

Library entries

Wordpress Shortcode Python

Vote

0

Regular Expression
python

"
\[(\[?)(?P<shortcodename>\w\S+)(?![/w-])([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*(?:\[(?!\/\2\])[^\[]*)*)\[\/\2\])?)(\[?)
"
g

Description

Loading markdown...
Submitted by Nick Moreton - 13 days ago