Hi team, I have to extract only 22298389 from this below text. Could you please help on this.
Eg:
rma_labels/FedEx_101_2025-02-03_22298389.pdf
Hi @manojmanu.rpa
Use the expression \d+(?=\.pdf)
Hope this helps
Hey @manojmanu.rpa
can you try this expression
extractedNumber = System.Text.RegularExpressions.Regex.Match(filename, “(\d+)(?=.pdf$)”).Value
cheers
@manojmanu.rpa
(\d+)(?=.pdf$)
str_Input = rma_labels/FedEx_101_2025-02-03_22298389.pdf
System.Text.RegularExpressions.Regex.Match(str_Input,"(?<=\d+\-\d+\-\d+\_)\d+").Value
Hope it helps!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.