Variables in Regular Expession
View Single Post
12-06-2007, 02:13 AM
Join Date: Apr 2007
named capturing groups
(as opposed to just capturing groups or non-capturing groups). There are a few alternative syntaxes in RegEx-land for doing this, but
is all that PHP can use (PCRE).
More information is available on the ever useful
site or in the
. As far as I'm aware, the numeric key cannot be omitted from the resulting array of matches. That said it's a trivial matter to parse that array to remove items with a numeric key if you really wanted to.
The Following 2 Users Say Thank You to Salathe For This Useful Post:
View Public Profile
Send a private message to Salathe
Visit Salathe's homepage!
Find More Posts by Salathe