Re: Split with regex and group not working

2018-06-26 Thread Claus Ibsen
Hi Yeah you can also provide a sample project / sample code / unit test that demonstrates this issue. That can help track down and fix the problem. And also log a JIRA ticket so its not forgotten. On Tue, Jun 19, 2018 at 10:20 PM, Alex Dettinger wrote: > Hi Rory, > > If I get it well the whole

Re: Split with regex and group not working

2018-06-19 Thread Alex Dettinger
Hi Rory, If I get it well the whole regex is inserted between lines while you were expecting to insert only the matching part of the regex. In that case, you are welcome to work on a fix or open a ticket. At Apache Camel, we love contributions ;) https://github.com/apache/camel/blob/master/CO

Split with regex and group not working

2018-06-19 Thread Rory Gilfillan
The following code doesn't work: .split().tokenize("\n|\r\n", true, 100, true) It tries to reinsert the token between the lines without taking into account that the token is a regex string. The follow code in the GroupTokenIterator is the culprit: // include token in b