Regex, find invalid characters
Hello, I'm just getting familiar with regex, so that's my skill level on that.
I have an export from a database that has the possibility of some invalid characters, such as control characters, or something that we want to get rid of before we import it into a production system.
I think the printable pattern below does the trick for identifying invalid chars, however, this flags spaces, which are ok. How do I indicate NOT printables, and also NOT spaces? (maybe I don't have my logic right on that, but I think you know what I'm getting at)
Pattern p = Pattern.compile("^\\p{Print}");
Or, does anyone have a better way of approaching this? I'm open to suggestions. It's a big list of names and addresses, and we don't want to import junk.
thanks a lot!

