Pulling hair out with pattern matching
From: AcCeSsDeNiEd (dillon_at_SpamMinuSaccessdenied.darktech.org)
Date: 03/30/05
- Next message: Ala Qumsieh: "Re: Pulling hair out with pattern matching"
- Previous message: PerlFAQ Server: "FAQ 4.33 How do I pad a string with blanks or pad a number with zeroes?"
- Next in thread: Ala Qumsieh: "Re: Pulling hair out with pattern matching"
- Reply: Ala Qumsieh: "Re: Pulling hair out with pattern matching"
- Reply: AcCeSsDeNiEd: "Re: Pulling hair out with pattern matching"
- Reply: Chris Mattern: "Re: Pulling hair out with pattern matching"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Ala Qumsieh: "Re: Pulling hair out with pattern matching"
- Previous message: PerlFAQ Server: "FAQ 4.33 How do I pad a string with blanks or pad a number with zeroes?"
- Next in thread: Ala Qumsieh: "Re: Pulling hair out with pattern matching"
- Reply: Ala Qumsieh: "Re: Pulling hair out with pattern matching"
- Reply: AcCeSsDeNiEd: "Re: Pulling hair out with pattern matching"
- Reply: Chris Mattern: "Re: Pulling hair out with pattern matching"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|