Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

remove character in jython

How to remove last delimiter from each file using jython evaluator if there is no data beyond that.

My input looks like

no;name;address; 
1;aaa;xyz;
2;bbb;abc;
3;ccc;ddd
4;eee;fff;

Expected output should looks like.. 4th row remains same it doesn't contain anything which we are looking for delimiter.

no;name;address 
1;aaa;xyz
2;bbb;abc
3;ccc;ddd
4;eee;fff

remove character in jython

How to remove last delimiter from each file using jython evaluator if there is no data beyond that.that. There is one special character in last row. It has to remain same.

My input looks like

no;name;address; 
1;aaa;xyz;
2;bbb;abc;
3;ccc;ddd
4;eee;fff;
5;gíg;hhh;

Expected output should looks like.. 4th row remains same it doesn't contain anything which we are looking for delimiter.

no;name;address 
1;aaa;xyz
2;bbb;abc
3;ccc;ddd
4;eee;fff
5;gíg;hhh;