splitOnce has asked for the wisdom of the Perl Monks concerning the following question:
to check for lines end with \digit , I want to see if the line end with a back slash follow by a digit then I want to ignore it . the data i have is the following :if ($lastOne =~ /\w+$/ && $lastOne !~ /(?<=\W)[0-9]$/)
so in this data I want to ignore only the first line , my code is ignoring both the first and second . do you see the problem .. thankshull/uuu/8 cook/too/un-8-9 luck/goo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex with digits
by Abigail-II (Bishop) on Jul 31, 2002 at 14:03 UTC | |
|
Re: Regex with digits
by mkmcconn (Chaplain) on Jul 31, 2002 at 17:47 UTC | |
|
Re: Regex with digits
by robobunny (Friar) on Jul 31, 2002 at 14:50 UTC |