Can't get group to match - please help
- From: jack@xxxxxxxxxxxxxxxxxxxxx
- Date: 7 Nov 2005 02:30:55 -0800
This seemingly simple regex is causing me problems
my $test = "Pub LOC.REC.USEIB03375MAR09.mngref0 #010C9D94";
my ($res) = ($test =~ /Pub (\w+{\.\w+})\s#.*/);
if( $res ){
print "\n$res\n";
}
The problem is to extract the "LOC.REC.USEIB03375MAR09.mngref0" part of
the string, which may have three to six parts - so it could be
LOC.REC.USEIB03375MAR09 or it could be
LOC.REC.USEIB03375MAR09.mngref0.day9.test
What am I doing wrong ??
.
- Follow-Ups:
- Re: Can't get group to match - please help
- From: Anno Siegel
- Re: Can't get group to match - please help
- Prev by Date: Re: FAQ 3.19 How can I make my CGI script more efficient?
- Next by Date: threads in perl
- Previous by thread: Auction Sniper
- Next by thread: Re: Can't get group to match - please help
- Index(es):
Relevant Pages
|