We help IT Professionals succeed at work.

RegEx - Helicon Tech ISAPI Re-Write

ddayx10
ddayx10 asked
on
537 Views
Last Modified: 2012-05-11
I am doing some URL re-writing. Using an old method with IIS6 on this server. Using Helicon Tech ISAPI_Rewrite (may help knowing what regex engine is).

Trying to match for this string:
International/Default.aspx?id=International%2fDefault

Basically I want to capture that and rewrite it to just default.aspx.

Problem....regular expressions drive me crazy for some reason. The simplest things always seems to be filled with caveats!

As soon as I introduce the "?" in my regular expression it will not match...argghhh.

Regular Expression Sample:
International/Default\.aspx\?

String:
International/Default.aspx?

NO MATCH :(

Can anyone point me in the right direction here?


Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Well I was sort of thinking the same thing. Then I was thinking their "tester" was buggy. Now I see that they use a server variable to manage querystrings and you cant properly pattern match beyond the ? so I'm not entirely crazy (except for the fact that Im stuck using this stupid product!).

Anyway I think I can see that this isnt going to fix my original problem anyway, but appreciate you answering so you can have some points :)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.