hi, how can i get the ‘Passenger Service Charge’ string? The numbers before and after the string are not fixed. The ‘Passenger Service Charge’ string also is not fixed.
I just want to get the value(string) in between the left and right numbers.
Check this below code,
System.Text.RegularExpressions.Regex.Match(outreg,“(?<=\d\s)\D+(?=\s\d)”,System.Text.RegularExpressions.RegexOptions.Multiline).Value
Can you check below code and let us know, System.Text.RegularExpressions.Regex.Match(outreg,"(?<=\d\s)\D+(?=\s\d)",System.Text.RegularExpressions.RegexOptions.Multiline).Value
i have tested all the suggested solution, but still finds that bot is logging empty string instead of the middle variables.
Other row does not matter as the variable needed is the one underlined in red.
Also, Follow the Steps mentioned in the below post, but suit it to your requirements, Like change the regex expression to the above, add the necessary columns to the Build Datatable Activity as per your need :
Before using or following the approach confirm on whether the Table/Row by Row extraction is really what you need.
thanks a lot for your fast input, i have managed to combine all of your suggested solution accordingly to work with my requirements and now is working fine. cheers.