Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Regex (find an * after a digit)

by welchavw (Pilgrim)
on Feb 06, 2004 at 02:23 UTC ( #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


Comment on Re: Regex (find an * after a digit)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2015-07-28 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (259 votes), past polls