09-05-2013, 12:46 AM
PM User |
Join Date: Jun 2007
Thanked 534 Times in 516 Posts
Originally Posted by robertbaer
Am confused by all of what seem to be escape characters and the seemingly random use of more than one of them "/" and "\"; if there was only one escape character, it might make more sense.
Worse, this funnybusiness of having undisclosed functions for some random character "." and then using a different character as the escape character is strange to say the least.
To heck with M$, just because they act like a big bully does not mean one can be dictated by their whims.
Blow their socks off!
1. regexp is "a mess" in any language. in fact, JS's RegExp literals are much nicer to read than PHP's string-based implementation. you can blame perl if you don't like JS's implementation of RegExp.
2. you can in fact use coffescript to kill off one level of quotes and have it run in all browsers.
BROWSER STATS [% share]
(2013/10/31) IE7:0.5, IE8:8.6, IE9:5.3, IE10:12.3, FF:17.7, CH:41.8, SF:8.1, MOBILE:20.4