Post Reply 
Redirecting URLs using variables
Feb. 17, 2013, 06:31 AM
Post: #5
RE: Redirecting URLs using variables
Thanks. That works perfectly.

I'm assuming the "([^?]+)\1" means look for a run of any character that's not a question mark and place it into the variable?

On the other hand, why doesn't it interpret the "?" as the Prox meta character meaning "any character" -- which would seem to prevent it from capturing anything into the variable.

Quote:It is as Scott Lemmon wanted or left it. The spaces are not needed, btw.
OK. It's just not evident to me what the "&" symbol's meaning/function is here. The description of it on the matching language page doesn't seem to cover an instance like this.

Quote:A trailing \1 used in the matching expression of a web page filter captures code. A trailing \1 in a URL match or list entry does not.
Very important to know. I never realized this. So, at least something in parentheses will always be necessary to signal that something should go into the variable (for URLs and lists)?
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Redirecting URLs using variables - zoltan - Feb. 14, 2013, 10:59 PM
RE: Redirecting URLs using variables - JJoe - Feb. 15, 2013, 03:29 AM
RE: Redirecting URLs using variables - zoltan - Feb. 15, 2013, 05:37 PM
RE: Redirecting URLs using variables - JJoe - Feb. 16, 2013, 05:33 AM
RE: Redirecting URLs using variables - zoltan - Feb. 17, 2013 06:31 AM
RE: Redirecting URLs using variables - JJoe - Feb. 17, 2013, 07:37 PM
RE: Redirecting URLs using variables - zoltan - Feb. 18, 2013, 04:26 AM
RE: Redirecting URLs using variables - JJoe - Feb. 18, 2013, 04:13 PM

Forum Jump: