Hi nauna,
Refer below code.
C#
protected void Page_Load(object sender, EventArgs e)
{
string statement = "Nikon-D3400-DSLR-Camera-Body-with-Dual-Lens:-AF-P-DX-NIKKOR-18-55-mm-f/3.5---5.6G-VR-+-AF-P-DX-NIKKOR-70-300-mm-f/4.5---6.3G-ED-VR-(16-GB-SD-Card-+-Camera-Bag)--(Black)";
statement = System.Text.RegularExpressions.Regex.Replace(statement, @"[^0-9a-zA-Z.]+", "");
Response.Write(statement);
}
VB.Net
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim statement As String = "Nikon-D3400-DSLR-Camera-Body-with-Dual-Lens:-AF-P-DX-NIKKOR-18-55-mm-f/3.5---5.6G-VR-+-AF-P-DX-NIKKOR-70-300-mm-f/4.5---6.3G-ED-VR-(16-GB-SD-Card-+-Camera-Bag)--(Black)"
statement = System.Text.RegularExpressions.Regex.Replace(statement, "[^0-9a-zA-Z.]+", "")
Response.Write(statement)
End Sub
Output
NikonD3400DSLRCameraBodywithDualLensAFPDXNIKKOR1855mmf3.55.6GVRAFPDXNIKKOR70300mmf4.56.3GEDVR16GBSDCardCameraBagBlack