News for hackers. Stuff that matters.
Re:Advanced Regular Expressions by DEinspanjer on Thursday May 07, 2009 @02:24PM (#598408)
Yeah. PHP syntax. From what I understand, they stuffed it in there mostly to allow easier processing of nested HTML tags and such.
Re:Advanced Regular Expressions by lucumo on Thursday May 07, 2009 @04:45PM (#598639)
I did some experimenting with recursive regexes after reading this article. I hadn't heard of it before and it sounded like an interesting concept.

However, captures in the recursion can't be retrieved after it gets returned. This may not be surprising, but it does reduce the power of recursion somewhat.

Re:Advanced Regular Expressions by tjpick on Thursday May 07, 2009 @05:55PM (#598757)
coz you can't expect anyone using PHP to, you know, write a proper parser...