I am trying to find an easy way to remove any data which does not belong in a base 64 string. IE the string might look like the one below
This is a test
please note VbCrLf's are not allowed in Base64 nor are single qoutes."
Is there an easy why just to replace all the non base 64 characters?