Manpulate text read from my Get text activity

I have a software robot activity that will read text from my UI like:

Tumor stage pTlb2 NO MX, FIGO IB2

and create a variable “Text”

I have then used a Regex expression with an Assign activity to remove text “Tumor stage”

The next step in my process is to interpret the first character of the actual stage text provided
in my example, this is the character “p” in pTIb2 NO MX, FIGO IB2

In other examples, this could be replaced by other characters like a, c or y

Once interpreted, I wish to separate the p from the rest of the text as a variable that I can use in a Type into activity in my web browser application.

Can anyone help with with my syntax?

A

Hey @andrew.haworth,

You want to get the first character from the rest of string if yes use the below code.

mystr.Substring(0, 1)

Let me know if it’s helpful.

Thanks,
Sanjit

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