Pulling hair out with pattern matching

From: AcCeSsDeNiEd (dillon_at_SpamMinuSaccessdenied.darktech.org)
Date: 03/30/05


Date: Wed, 30 Mar 2005 13:49:37 +0800


$string=qq|<ahref="/fggfd/ra/client/getPolOwnerList.do?startWith=*&selectedUnitID=5445&selectedAdvID=95456&sid=gfhfghfh"|;

        if ($string =~ m/getPolOwnerList.do?startWith=*/) {

                print $string;

        }

This doesn't work.
It seems anything after the '?' in the pattern match is causing problems because this works:

if ($string =~ m/getPolOwnerList.do?/) {

Any clues to what is wrong?
I'm using perl v5.6.1 built for MSWin32-x86-multi-thread.

Thanks

To e-mail, remove the obvious



Relevant Pages