ITeye博客

正则表达式

rafale35 · 2011-08-31 00:06 · Android · 移动开发 · Markdown

	public static boolean isValidFileName2(String fileName) {
		if (fileName == null || fileName.length() > 255)
			return false;
		else
			return fileName.matches("[^\\s\\\\/:\\*\\?\\\"<>\\|]*");
	}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。