in reply to Re: regex to remove all non a-z and spaces
in thread regex to remove all non a-z and spaces

a question on implementation... would the + make the regex any faster, since it matches more before it substitues?
not that it matters at all in a case like this... just wondering, to file away in my "pieces of worthless trivia" section of the brain.
  • Comment on Re^2: regex to remove all non a-z and spaces

Replies are listed 'Best First'.
Re^3: regex to remove all non a-z and spaces
by davidrw (Prior) on May 16, 2005 at 02:57 UTC
    I was thinking the same thing as i posted that, and I don't know -- I was actually thinking of posting it as a question.. i guess i'll do that now.

    Update: I forked this to a new thread: regex internals: quantifiers vs global match

      Synopsis from forked thread:  Yes it does.  At least for average and special cases (pathological ones are another matter).