Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

replace and get the data that I want by using; replace all occurrence & split commands

0 Likes
1,003

Hello experts, I'm currently working on parsing the data.

My text looks like this: 'A5**180000****100***798**********APK'.

First, I used; replace all occurrence of '*' in text with ` `.

So, I could get; A5 180000 100 798 APK.

Then, I want to retrieve the data 'A5', '180000', and '100' for the further process.

I used split text at space into lv_head lv_num lv_code.

However, I only get A5 as a result.

How do I get first three elements after using replace command?

Any suggestion would be appreciated other than split command as well.

Thanks,

3 REPLIES 3
Read only

venkateswaran_k
Active Contributor
0 Likes
969

are these * are fixed one..

meaning between A5 and 180000 - is always two * only .- example

or these *s are variable length?

Read only

0 Likes
969

That is just an example and could be changed in different length.

Sorry I didn't specify.

Read only

0 Likes
969

Sorry, I just figured it out.