I need to run an important check over multiple PHP files with the following regex:
\$this\->(m_\w+)(?!(.|\v)*private \$\1)
But my IDE (Sublime Text 2) says that it runs out of stack space while trying to match the regex. It works fine with very small files though, but none of the files I need to check is small enough. So how the regex can be optimized to let it work on text of any length?