At 09:07 AM 9/21/05 +0100, [EMAIL PROTECTED] wrote:
>>      You state that there must be a NON numeric at end of 
>> line. I would have \D* or \D*$.
>
>Excellent suggestion. I shall implement it forthwith.

Actually, to make sure ur string ends with a non-numeric u need \D$ not
\D*$.  \D* matches 0 or more non-digits.  That is used for cases where a
string could end in "\D" but doesn't *have* to.

C:\WINDOWS\Desktop>perl
$bob = "abc123";
print "non-number end\n" if $bob =~ m/.+\D*$/;
*******
non-number end






--
REMEMBER THE WORLD TRADE CENTER         ---=< WTC 911 >=--
"...ne cede malis"

00000100

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to