[ 
https://issues.apache.org/jira/browse/CAMEL-13597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16852253#comment-16852253
 ] 

Claus Ibsen commented on CAMEL-13597:
-------------------------------------

That is because the grouping includes the token in between each splitted item, 
so that is why you see that | character

> Splitter tokenize doesn't really accept every regex
> ---------------------------------------------------
>
>                 Key: CAMEL-13597
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13597
>             Project: Camel
>          Issue Type: Bug
>          Components: came-core
>    Affects Versions: 2.17.0
>            Reporter: qu4ntic
>            Priority: Minor
>              Labels: bug
>
> Hi, 
> Neither
> {code:java}
> .split().tokenize("\r?\n", true, 2, true){code}
> nor 
> {code:java}
> .split().tokenize("\r\n|\n", true, 2, true){code}
> work.
>  
> The latter expression insert a "|" instead of correctly split rows on \r\n or 
> \n.
>  
>  
>  
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to