I am a RPA beginner and I would like to kindly ask you for help.
My goal is to read and extract information from a web site as a string value, trim it to gain a single number, then declare it as an integer variable.
The string value provided by the selector is like this: “1of7Records:66T” or “Records:2T”
I am using .remove and .replace options to trim the string, but all I get is “1of7Records:66” or “66T” what leads to string to integer conversion failure.
Could somebody advise me how to compose the .remove/replace or regex to get a simple number value?
thanks for reply, I am trying to fit your expression to my workflow, but looks like I am doing something wrong:
Extracted_string - declared string variable with the string extracted from the web site.
StringVariable - declared int32 variable to be filled with the trimmed number.