How to extract the vauefrom string

Hi All

How do i extract the amount in given string and i need a value for $65/hr - $70/hr
image
Can anyone tell me how do i extract that?

@divyanancypaul.it

can you please tell how your are getting the output format?

are you using get text activity ?

I used get text for overall, i need to extract the amount only

@divyanancypaul.it

can you share the text which was fetched using get text activity?

so that we can help you

@divyanancypaul.it

Output=System.Text.RegularExpressions.Regex.Match(GetTextInput,“$\d+/hr-$\d+/hr”).Value

If this is not give the correct value Please put the input string

IF there is an rate i need to extract so it may possible to get without rate so all information are dynamic

@divyanancypaul.it

Put input and output of your Get text

Hey @divyanancypaul.it
you can use regex.
Try this:
\d+(\.\d+)?
image


image

BlankProcess92.zip (2.5 KB)

@divyanancypaul.it

try this once

inputstr is your input variable

string.join("-",System.text.RegularExpressions.Regex.Matches(inputstr,"\$\d+").Cast(Of System.Text.RegularExpressions.Match).Select(Function(m) m.Value).ToArray())

gives output as
$60-$80

1 Like

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