Regular Expressions 101

Community Patterns

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 - 8 years ago