• Post Reply Bookmark Topic Watch Topic
  • New Topic

String separator by fixed length  RSS feed

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have a string like below which will have different length on every request. I need to break this string as 50 char length and print the output until the length less than 50.
Can you please guide to achieve this task.
Thanks
Cheers
Jowsaki

024A3A6925B9CDC11D85919D95D0041F012CD41A61061C890A248B08309C4850AB08208B4834A348350718410926922C20841A61061C890A248B08309C4850AB0820D34834CB0D3CCBCD4CE4D445A41A938320F41A61061C890A248B08309C4850AB08208B4834A348350718410926922C20834D20D35421035421035421035421035320735421035421035421035421041A9903A4AB0820D3484081106D292CC20C36F213513610424DB083144DE42658A5605204E641E93742113732070000
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay this probably isn't the most elegant, but did you mean something like this?
 
Sham Jowsaki
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Eric. Yes, my requirement is the same as you stated.
Thanks for your help.
Cheers
Jowsaki
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!