Sorry, I did some further tesintg and discovered that it's somehow related to my environment. I did some experimenting and found that 2.2.4 works perfectly for me if I run it from the command line java -jar yuixxxxx'. If I run it as an ant task, however, this input (?:)((\n|\r|.)*?)(?:)' results in a line break in the generated file. It's very odd that the 2.1 version does work for me from the ant script. Comment by Pamela Hongsakul on April 26, 2011 at 8:09 pmI dig DIGG what a wo derful idea. You have stoeprupd so many interesting stories and bloggers in the past few years. May you continue to be the wind beneath the wings of fresh ideas and opinions.