Regex expression for a String

Thanks a lot @ppr @Gokul001 @Tapan_Behera1 for your valuable responses !