Remove number

Hi Team I have Text
2023-04-03.xlsm (72.0KB)
How to remove (72.0KB) this from text

Hey @Kuldeep_Pandey ,
Try this ,

YourOurputVaribale = Split("2023-04-03.xlsm (72.0KB)"," ")(0).ToString

Output :
image

Regards,

Hello @Kuldeep_Pandey
Try regex,

system.text.regularexpressions.Regex.match(Yourstring,".*(?=\()").tostring.trim

image

HI @Kuldeep_Pandey

How about this Regular expression

System.Text.RegularExpressions.Regex.Replace(YourString,"(?<=xlsm\s)\S.*","").Tostring

image

Regards
Gokul

Hey @Kuldeep_Pandey ,
Try this ,

OutputVaribale = Left(InputString,InputString.IndexOf(“(”))

Regards,
Pratik

Input Text = “\10.33.105.155\RPA-Bot\Development Files\Easy-HUNG\20230406_G_16_222540-k\23.04.03_RW1_DU.xlsm”
I want Output like this 222540 Only thisno
How to get this

Hey @Kuldeep_Pandey ,
If your Input is always in this format
“\10.33.105.155\RPA-Bot\Development Files\Easy-HUNG\20230406_G_16_222540-k\23.04.03_RW1_DU.xlsm”
then you can use

Split(Split("\10.33.105.155\RPA-Bot\Development Files\Easy-HUNG\20230406_G_16_222540-k\23.04.03_RW1_DU.xlsm","16_")(1),"-k")(0)

Output :
image

Regards,

HI @Kuldeep_Pandey

How about this Regular expression?

System.Text.RegularExpressions.Regex.Match(YourString,"(?<=_)\d{6}").Tostring

image

Regards
Gokul