Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Regex (find an * after a digit)

by welchavw (Pilgrim)
on Feb 06, 2004 at 02:23 UTC ( [id://326964]=note: print w/replies, xml ) Need Help??


in reply to Regex (find an * after a digit)

AM,

I believe your regex is ok (your use of $_ may be somewhat mistaken, but that may be just due to a "quickie" example type-up.

On 5.6.1, under Win32, I got the expected result from

echo 5* | perl -e "while (<>) {print $_ if /\d{1,}\*/}"

No answers for you beyond this...(perhaps I missed something???)

,welchavw

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://326964]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-24 09:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found