I was passing through at 4:30AM - just felt obligated to point out that the regex posted was very weak.
Now, the regex posted by fris is a hell of a lot better - it actually copes with real world scenarios.
I'm sorry if you don't like me pointing out what strikes me as non-optimised code. Rubbing each other's nuts helps noone ;)
|