How to write syntax to get "80% reduction" from this text "The challenge: vast amounts of untapped data in emails and chats. UiPath Communication Mining transforms unstructured text into actionable insights. Expect up to an 80% reduction in manual effort"

i need substring of “The challenge: vast amounts of untapped data in emails and chats. UiPath Communication Mining transforms unstructured text into actionable insights. Expect up to an 80% reduction in manual effort, improved decision-making, and enhanced customer experiences.” to get “80% reduction”

@hasini_deverakonda

If the reduction was constant string then you can use simple regex here
\d+% reduction

if reduction can chnage
then use below pattern
\d{1,3}% \w+

I hope you know how to use regex pattern, if not please let me know

try and let me know

1 Like

do we can’t use substring here.
because i don’t know regex

you can use substring but its better to use regex
let me give you screenshot for better understading

  1. take one assign activity
  2. create a string variable
  3. give it in To section of assign activity
  4. in value section pass below value
    System.Text.RegularExpressions.Regex.Match(strInput,“\d{1,3}% \w+”).ToString

Happy automation!!