hmm... this block does not handle windows newline, but I already submited pull request, curious -- is there any special reason why [=\n] is better then \n in this case? and when can I read about meaning of [=x] in regexp ?