Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13597

Splitter tokenize doesn't really accept every regex

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.17.0
    • Fix Version/s: 3.0.0-M3, 3.0.0
    • Component/s: came-core
    • Labels:
      None

      Description

      Hi, 

      Neither

      .split().tokenize("\r?\n", true, 2, true)

      nor 

      .split().tokenize("\r\n|\n", true, 2, true)

      work.

       

      The latter expression insert a "|" instead of correctly split rows on \r\n or \n.

       

       

       

       

       

       

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              justqu4ntic qu4ntic
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: