in reply to a regex

I tested it but not sure if I covered everything?

That depends entirely upon what you subsequently do with the test.

Unless you tell us, or better, show us, exactly what you use the input text for, there is no way we can advise you whether you have done enough to sanitise the input.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: a regex
by toniax (Scribe) on Dec 13, 2010 at 03:57 UTC
    The program I am working on, is a sort of like a message board
    I use the email address to send a confirmation via sendmail.
    The input text is processed as follows
    email address
    title
    message
    -X-