Hi Guys,

I'm trying to remove all the special characters within a file using the code below but I need to remove also the doble quotes " but what should I use to enclose the characters. I've been looking but can't find. Thanks.

while (sep != 0)
{
sep = strpbrk(line, "\<=->/'");
if (sep != 0)
*sep = ' ';
}

Recommended Answers

use the escape sequence character. and to get the '\' you need two of them

sep = strpbrk(line, "\\<=->/'\"");
Jump to Post

All 4 Replies

use the escape sequence character. and to get the '\' you need two of them

sep = strpbrk(line, "\\<=->/'\"");

hi There,

I tried but I'm getting:
unknown escape sequence '\<'

yes, I knew that would happen. Please look at my post very carefully because I showed you the correction -- two '\' characters.

Thanks you are a legend it works now. thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.