in reply to Regex Hell

Your regexes appear to do what you want, though of course "\s" doesn't mean "space" it means "whitespace".

So why do you think they're broken?



“Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.”
M-J D

Replies are listed 'Best First'.
•Re: Re: Regex Hell
by merlyn (Sage) on Jul 08, 2003 at 21:38 UTC
    Your regexes appear to do what you want
    Well, that would involve a bit of mindreading. In particular, I would supect that the email regex is very wrong, for reasons pointed out elsewhere in this thread. Probably about the best thing you can say about this hash is the useless tautology:
    Your regexes appear to do what they do.
    {grin}

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

      Yeah, point taken Merlyn.

      Everyone's got a bad email regex handy haven't they? I got mine from Matt Wright.

      No seriously, I was ignoring the specifics of the email regex for the generality of "why do you think they're broken"?



      “Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.”
      M-J D