Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Regex Help

by gautamparimoo (Beadle)
on Mar 25, 2013 at 08:48 UTC ( #1025254=note: print w/ replies, xml ) Need Help??


in reply to Re: Regex Help
in thread Regex Help

Thnks davido your regex just cleaned it up. But what modifiers or assertion should i use to limit matching such that it does not match it in different lines in a text file ie only match if this pattern is specified in one line not across different lines. Pl tell?


Comment on Re^2: Regex Help
Replies are listed 'Best First'.
Re^3: Regex Help
by davido (Archbishop) on Mar 25, 2013 at 08:55 UTC

    Replace \D? with a more explicit character class. \D will match anything that is not a numeric digit. Newlines (\n) are included in "anything that is not a numeric digit".


    Dave

      Exactly what i was trying to say.. How to do tell it to \D except \n ?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2015-07-07 20:52 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 (93 votes), past polls