Regular expression replacements are always followed by a new line

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I'm trying to append several items extracted from the console log, however each item is followed by a new line. I cannot see any way to prevent this. I would expect that when substText is used the new lines would need to be explicitly set.

      Example console:

      *** Application: Firefox 15.0a2
      *** Platform: Mac OS X 10.7.4 64bit

      Example tokens:

      ${BUILD_LOG_REGEX, regex="^\\*{3} Application: (.*)$", maxMatches=1, showTruncatedLines=false, substText="$1"} on ${BUILD_LOG_REGEX, regex="^\\*{3} Platform: (.*)$", maxMatches=1, showTruncatedLines=false, substText="$1"}

      Expected output:

      Firefox 15.0a2 on Mac OS X 10.7.4 64bit

      Actual output:

      Firefox 15.0a2
       on Mac OS X 10.7.4 64bit
      

            Assignee:
            Alex Earl
            Reporter:
            Dave Hunt
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: