Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: Should be a simple spaces/digits regex....but I'm turning grey!

by Anonymous Monk
on Aug 05, 2014 at 21:20 UTC ( [id://1096361]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Should be a simple spaces/digits regex....but I'm turning grey!
in thread Should be a simple spaces/digits regex....but I'm turning grey!

I believe that mine is the one that meets the original specification.

That might be true if you believe the "original specification" was only the five example strings, and you ignore the regexes in the OP, this clarifying post, and the solution, posted six hours before your node.

Interpreting "can't have any spaces after a digit has been found" to mean "a digit may be followed by any number of non-whitespace characters" ([^\s]*) is highly questionable on its own anyway.

Yes, viffer's solution and mine disagree on the validity of your string.

Since viffer is the OP, that's just a strange way of saying that your code is not actually a solution.

In hindsight, it seems that his solution probably does implement what he intendeds.

Another hindsight one might have is "I should have read more than 7 lines of the thread before posting", or "I could have apologized for or at least corrected my mistake instead of defending it".

  • Comment on Re^4: Should be a simple spaces/digits regex....but I'm turning grey!
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-26 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found