hello,
i need to etract data between brackets
DSNA MOeLITE (DC0087)_2025-08-01_2025-09-15.xlsx
output i need -
DC0087
plesae help
hello,
i need to etract data between brackets
DSNA MOeLITE (DC0087)_2025-08-01_2025-09-15.xlsx
output i need -
DC0087
plesae help
Use regex for this
strExtractedValue = System.Text.RegularExpressions.Regex.Match(strFileName, "(?<=\()[^)]*(?=\))").Value
Hello @Mathkar_kunal,
Use regex for this:-
System.Text.RegularExpressions.Regex.Match(strFileName, β((DC\d+))β).Groups(1).Value
Hey @Mathkar_kunal buddy use this string manipulation to extract it dynamically like if any value in the bracket then itβll extract those but first store this string in variable
str_Output = str_String.Split(β(β)(1).Split(β)β)(0)
Cheers
Hello @Mathkar_kunal,
Use dynamic regex for this:-
System.Text.RegularExpressions.Regex.Match(strFileName, β(([^)]+))β).Groups(1).Value
Use this regex (?<=()[^)]+(?=)) to extract the bracket value.
strextractedvalue = System.text.regularexpressions.regex.match(strFilename, "(?<=\()[^)]+(?=\))").value
strFilename = DSNA MOeLITE (DC0087)_2025-08-01_2025-09-15.xlsx
Thanks!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.