i have a sting in which i want to replace all characters(except special characters) by X.. i mean if i have a string str= mac,iphone & ipad are products of apple
theis should be converted to
str= XXX,XXXXXX & XXXX XXX XXXXXXXX XX XXXXX
i know this can be done by finding all special characters and note their position and then replace all other characters except these special characters but there are so many special characters should i check them one by one ? or is there any other method to identify them
please help