Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: Regex Help

by Anonymous Monk
on Mar 25, 2013 at 10:17 UTC ( #1025270=note: print w/replies, xml ) Need Help??


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

perlrequick  (?:\D|\n)  [\D\n]

Replies are listed 'Best First'.
Re^6: Regex Help
by davido (Archbishop) on Mar 25, 2013 at 16:29 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://1025270]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2016-12-09 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (152 votes). Check out past polls.