Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 rifling through the Monastery: (9)
As of 2014-12-26 08:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (168 votes), past polls