Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: Regex Help

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


in reply to Re^3: Regex Help
in thread Regex Help

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

Replies are listed 'Best First'.
Re^5: Regex Help
by Anonymous Monk on Mar 25, 2013 at 10:17 UTC

      I may be misunderstanding the specification, but I believe he wants to include non-digits but exclude newlines. I think the easiest way is [^\d\n], but I would prefer to explicitly include what is allowed. He mentioned in his OP the following separators: .-:. That being the case, the character class would be [.:-].


      Dave

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025263]
help
Chatterbox?
[xablau]: soap

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2017-01-19 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.