Extract Information from String

I want to extract all the data from this string and store it in variables. I used Get Full Text to obtain this data.

image

1 Like

@ace.alcid

You can use JSON Deserialization activity, can you share the text and what info you require in variables, give use sample

Thanks

1 Like

This is the text from the window I screen scraped. Is there a way I could split it into an array?

image

1 Like

@ace.alcid

You can use ā€œ\r\nā€ to split or you can do with JSON, share the text so that we can guide you

Thanks

1 Like

This is the text when I print it.

2 Likes

Hello @ace.alcid,

Will Anchor name remains same all the time ??

Eg : Device,Date,SNR??

If so then you can try this

use Matches Activity and the pass Get Full Text Variable as input then use patterns like
(?<=Device\s=).*

Attaching Screen Shot For your reference

You can give a try here Try Here

Cheers
@ace.alcid

4 Likes

Thanks for the response @Pradeep_Shiv. I was hoping to know if it is possible to only get the first string after the equal sign? Since the regex you sent gets all the string after the equal sign, it also includes the unit of the values so I could convert it to double.

1 Like

Hello @ace.alcid,

Can you give me some example?

Cheers
@ace.alcid

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.