RegExp
Regular expressions are powerful, but I find that they’re also incredibly annoying to use. Recently I was trying to create a parser that would try a few different regular expressions and output an object with the proper fields defined. The input was a string separated by periods, so it was fairly easy to create the … [Read more…]