toxy Posted July 3, 2013 Share Posted July 3, 2013 Hi again,in my report I've to print an IBAN-code. This is a quite long string with varying length (between 20 and 30 chars. approximatly). For reading, it is better to print it in groups of 4 chars.I don't think, there is a ready-made format function for this ... but I'm only a iReports-maker, not a java-programmer... perhapes I can get help here? http://community.jaspersoft.com/sites/all/libraries/ckeditor/plugins/smiley/images/regular_smile.gifthanks for any helptoxythis is it, I would need: AT363471100000060815 --> AT36 3471 1000 0006 0815 (iReports 4.5.1) Link to comment Share on other sites More sharing options...
Solution lucianc Posted July 5, 2013 Solution Share Posted July 5, 2013 Try $F{MyField}.replaceAll("....", "$0 ")HTH,Lucian Link to comment Share on other sites More sharing options...
toxy Posted July 29, 2013 Author Share Posted July 29, 2013 Works perfectly! Many thanks! toxy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now