How to extract only part of text from website?

For example, I wanted to read the value of the net change of a stock from moneycotrol.com and I tried to extract only the decimal value (but not the percentage) through Get Full Text activity but was not successfull. Can someone pls help me on this? Thanks

Hi
welcome to uipath community
we can get the full value like 457.35 with get text activity and later we can split the text with string manipulation method like this
if we have received the output from GET TEXT with a variable named str_input
then
use a assign activity like this
str_decimal = Split(str_input.ToString,".")(1).ToString

Cheers @Sachingoudar

Thanks, @Palaniyappan but let me ask it in another way. Here I wanna extract only 2.70 but it’s picking up entire text i.e β€œ2.70(0.59%)”. How do we resolve this?

1 Like

Got it so in that case
If it’s obtained with variable named str_input
Then
Str_output = Split(str_input.ToString,”(β€œ)(0).ToString.Trim

Cheers @Sachingoudar

1 Like

Thank you @Palaniyappan. That resolved my issue.

1 Like

Cheers @Sachingoudar

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