Sorry, the 'trivially' wasn't meant as in 'trivial problem' but more like 'less sophisticated solution', i.e. without packing it into one regex or using negative lookahead (which I wanted to mention, but I couldn't remember the name, which was ample proof to me that it is a non-trivial solution). ;-)
| [reply] |
I had replied to your message, but apparently it vanished. I had no problem with your usage of the term 'trivial', and I appreciate you not giving a highly-dense solution as I'm still learning the language and high density would require more brainpower than I'm willing to devote to it.
I also plan on posting this code on SQLServerCentral.com for other DBAs to use and modify, and by using a simpler, 'trivial' implementation, the code will be more easily modified by others. If they know how to make it more dense, let 'em.
| [reply] |