I want to remove the G word from ‘Frontline G’ how to do it?
HI @guptasweb do this
Stringvar=" ‘Frontline G’"
Stringvar.replace(“G”,“”).trim
OR
System.Text.RegularExpressions.Regex.Replace(Stringvar,“(?:G)\b”,“”)
it shows me value cannot be null
Hey
give a try
yourStringVar.Split(" "c)(0)
Hi @guptasweb
You can try with both Regex and Split expression
System.Text.RegularExpressions.Regex.Replace("Frontline G","\sG$","").ToString
Split("Frontline G"," G")(0)
Regards
Gokul
How to write it in a excel file
store this value in a variable and use write cell to write in a particular cell.