• flash (unregistered) in reply to savar
    savar:
    s/[^-&'(),.\/0-9A-Za-z]//g

    It's certainly easier to understand than the original, which required that I memorize the ascii conversion table.

    In regards to the performance of regex, there are very few times when CPU performance is more critical than correct and concise code.

  • Matt (unregistered)

    All crappiness about the function aside, you could have at least added comments to the If statement to explain your magic numbers in case someone wanted to add or remove any.

Leave a comment on “Overruled by RemoveSpecialCharsExceptQuoteAmpersand...”

Log In or post as a guest

Replying to comment #:

« Return to Article