input = hi_325x320a ,or other input= test1 |450x543 b
i want output like hi_a ,want to remove 325x320 and test1|b ,wants to remove that number part n space…
input = hi_325x320a ,or other input= test1 |450x543 b
i want output like hi_a ,want to remove 325x320 and test1|b ,wants to remove that number part n space…
Regex.Replace(StringVariable.Replace(" ", “”), “[\d]{3}x[\d]{3}”, “”)
I don’t know if the number format is always 3 digits x 3 digits. If it also could be f.ex 4352x543 then you could write:
Regex.Replace(StringVariable.Replace(" ", “”), “[\d]{3,4}x[\d]{3,4}”, “”)
Hi,
Can you try the following expression?
System.Text.RegularExpressions.Regex.Replace(yourString,"\s*\d+x\d+\s*","")
Regards,
Thanks man
yeah thankyou man