Is there a limitation to the RegEx you can use?

I thought that Mod_Rewrite supports up to 9 atoms.

The following Regex: /([-a-z0-9]+)/([-a-z0-9]+)

Is fine, capturing /this/that as $1=this and $2=that.

But que up 9 of them like:

/([-a-z0-9]+)/([-a-z0-9]+)/([-a-z0-9]+)/([-a-z0-9]+)/([-a-z0-9]+)/([-a-z0-9]+)/([-a-z0-9]+)/([-a-z0-9]+)/([-a-z0-9]+)

And It tells me I have an error. Are there limitations in mod_rewrite I’m not aware of?

I’m not sure about the limitations.

You’d probably be better off capturing the whole thing and then parsing the results with PHP:

(/[-a-z0-9]+){1,9}

Off Topic:

BTW, it’s “queue”

aaron,

See PM about changing year’s regex to specify digits only.

Starting with /? That will require something BEFORE the / (Apache 2.x). Moreover, this code REQUIRES all nine atoms be matched. As I said before, line them up in series OR embed up to five atoms (values) in nested optional atoms.

Regards,

DK