simple wildcard regex problem.
- From: "Nikolas Britton" <nikolas.britton@xxxxxxxxx>
- Date: 27 Apr 2006 20:48:01 -0700
The short version is: How do I get $regex = qr{^...$}; to work.
I get this error message, and I don't understand what it's telling me:
"Unmatched [ in regex; marked by <-- HERE in m/[ <-- HERE ]/ at
../temp.pl line 87, <DATA> line 2."
------------------------------
Here's the long version: How do I get $regex = qr{^$regexstring$}; to
work.
while ($_ < "$numberofletters") {
$foo = substr($unsolvedword, $_, 1);
if ($foo eq "-"){
$regexstring .= ".";
} else {
$regexstring .= "$foo";
};
$_++;
}
.
- Follow-Ups:
- Re: simple wildcard regex problem.
- From: Paul Lalli
- Re: simple wildcard regex problem.
- Prev by Date: Getopts problem
- Next by Date: Re: How to test result of an extraction?
- Previous by thread: Getopts problem
- Next by thread: Re: simple wildcard regex problem.
- Index(es):