Hi All,
Is there any built in library or api provided by Sun or other open source projects, where it would let me split a
String into variable length tokens ?
For eg, If I have a string like below
If I want to split this string into tokens, based on variable length tokens, by providing size in some sort of regex (I could not put this in write wordings)
To be more specific, I should be able to split this string based on a copybook structure defined in COBOL. like
01 STRING1 PIC X(3)
02 STRING2 PIC X(5)
etc
I can write my userdefined function, but wondering if anything already existing.
Thanks