May i know how can i extract the following number from string (obtained from web browser)? Data
Attachment 12
Record23
Result wanted
12
2.23
I saw there are some post in Uipath regarding this topic but i not really sure what tools and what formula we can use. Is it that we must use for each tool at the end of the workflow in this case?
Appreciate if you can briefly explain on what are the tools and formula can use in this case.
We can try with Regex on this
System.Text.RegularExpressions.Matches(inputstring,“[0-9]+(.[0-9]+)|\d+”)
Once you got the output in a datatable use a FOR EACH ROW activity and pass the above datatable as input
—inside the loop use a assign activity like this
currentrow(“yourcolumnname”) = System.Text.RegularExpressions.Match(Currentrow(“yourcolumnname”).ToString,“[0-9]+(.[0-9]+)”).ToString.Trim
Noted on this. May i know what we need to do if we didn’t use the for each row tool?Reason being is the data extract is just one sentence from the web browser and it does not contribute the datatable.
If i plan to use assign activity in this case. Could you guide me on this?