I have a multiple lines String like:
>name 1
zzzzzzzzzzzzzzzzzzzz
zzzzzzzzzzzzzzzzzzzz
zzzzzzzzzzzzzzzzzzzz
>name 2
zzzzzzzzzzzzzzzzzzzz
zzzzzzzzzzzzzzzzzzzz
zzzzzzzzzzzzzzzzzzzz
line that contains > is the name of something, and other lines down contains data of something. My String is very big, I want to return the name of something without > and its data (ZZZZZ) separate and access to it after that. which structure is best to do this and how I can implement that. I'm new using groovy
Please help
>name 1
zzzzzzzzzzzzzzzzzzzz
zzzzzzzzzzzzzzzzzzzz
zzzzzzzzzzzzzzzzzzzz
>name 2
zzzzzzzzzzzzzzzzzzzz
zzzzzzzzzzzzzzzzzzzz
zzzzzzzzzzzzzzzzzzzz
line that contains > is the name of something, and other lines down contains data of something. My String is very big, I want to return the name of something without > and its data (ZZZZZ) separate and access to it after that. which structure is best to do this and how I can implement that. I'm new using groovy
Please help