have you measured how many behind-the-scene "processes" the regexp engine creates when parsing regexp? if you were to go behind the scene, what its doing is similar.
that's part of it. Good code, should also be maintainable and readable. I am sure you don't code your program in binary or numbers do you? Same logic, with too much symbols , it makes code unreadable.
So its even better if i come and present a one line solution that crams everything together?? A 15 lines of code program, properly indented, with understandable english words, and works just as fast as regexp sure beats one that's uncomprehensible and less lines of code.
yes indeed what i meant. however, have you conducted experiments to see whether regexp are indeed better in terms of speed than native string functions to solve problems?
This is where we clearly differ. You equate 'understandability' as being fine. I equate elegantly fast and efficient bug-free code as being fine.
So in the end, we can agree to disagree.
yes indeed. Its all up to the OP to consider and use the solutions. Its really no point continuing to argue here.