Unable to print regex value

Path: C:\Users\Man\Downloads\HistoricalData_1673003746098.csv

Value Required :HistoricalData_1673003746098

HI @Pujari_Manjunatha

Welcome to UiPath community

You can try with this expression

Path.GetFileNameWithoutExtension("C:\Users\Man\Downloads\HistoricalData_1673003746098.csv")

Regards
Gokul

@Pujari_Manjunatha

Try like this…you will get an collection of matches so you have to access each

Sheet_Name(0).Value

This will give the first value…

Also you can use path.GetfileNamewithoutextension(fullpath)

Cheers

Hi @Pujari_Manjunatha

Check this snap

image

thank you for the solution

2 Likes

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