-2

I want to match if the string starts with "/BUDGET-YK/". AFAIK ^ is required at the start of the regex. But no luck.

btw , I want to match only /BUDGET-YK/ , NOT REPORTS/2014/12_31_12_2014/12-2014-Taxes.xlsx

/BUDGET-YK/REPORTS/2014/12_31_12_2014/12-2014-Taxes.xlsx

My regex :

^\/BUDGET-YK\/.+

Example Strings :

V:\BUDGET-YK\Test Document 11\testdoc11.xls

/BUDGET-YK/REPORTS/2014/12_31_12_2014/12-2014-Taxes.xlsx

\\10.10.190.11\depts\IT_Docs\2021\05_31_05_2021\2023_IT-docs.xlsx

/DEPTS_IT/BUDGET-YK/BUDGET-DOCUMENT/1_BUDGET/linkfile.xlsx
Arbelac
  • 1,698
  • 6
  • 37
  • 90

0 Answers0