Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

2

Regular Expression
Python

r"
\$([\w]+)->([^\W]+)
"
g

Description

Find PHP object variables, and replace them with (array)brackets.

Submitted by The Milkman - 9 years ago