@Steve
Member since Mar 4, 2009
- Profile: /members/3044-steve.htm
- Comments: 2
Recent Blog Comments By @Steve
-
Ask Ben: Parsing CSV Strings With Javascript Exec() Regular Expression Command
Posted on Mar 5, 2009 at 11:56 AM
Haven't tried another browser. But in studying the regular expression, I could see how the regexp engine could match the first delimiter rather than the "^" and then match whatever followed--simply skipping over the empty field. I tried to move the "^" to the beginning of the expression, but then th... read more »
-
Ask Ben: Parsing CSV Strings With Javascript Exec() Regular Expression Command
Posted on Mar 4, 2009 at 10:28 PM
Ben, Very useful code! I had a problem when using it with IE where in the special case that the first character is the delimiter, the code fails to store an empty string representing the empty value preceeding the delimiter. So I addeed the following code right before your while loop and it took car... read more »