Back to project page shareplay.
The source code is released under:
Copyright (c) 2014, Benjamin Damer All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
If you think the Android project shareplay listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.afqa123.shareplay.common; //from ww w.ja v a 2 s. c om public class Filename { // Only allow: // alpha-numeric, whitespace, and special: . , - _ private static final String InvalidChars = "[^a-zA-Z0-9 \\.,\\-_]"; public static String clean(final String name) { if (name == null) return null; return name.replaceAll(InvalidChars, ""); } }