http://www.perlmonks.org?node_id=1025263


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