【初心者】Java質問・相談スレッド105【大歓迎】
■ このスレッドは過去ログ倉庫に格納されています
0686デフォルトの名無しさん
2007/09/13(木) 08:30:48String regex = "[;\\\\/:\\*?\\"<>|]
hoge = "ab?cdefg";
p = Pattern.compile(regex);
m = p.matcher(s);
System.out.println(m.find());
hoge = "abc:de;fg";
p = Pattern.compile(regex);
m = p.matcher(s);
System.out.println(m.find());
hoge = "abcdefg";
p = Pattern.compile(regex);
m = p.matcher(s);
System.out.println(m.find());
hoge = "abc\\<>defg";
p = Pattern.compile(regex);
m = p.matcher(s);
System.out.println(m.find());
hoge = "abcd345ほげ「^\\efg";
p = Pattern.compile(regex);
m = p.matcher(s);
System.out.println(m.find());
hoge = "abc\\<>defg";
p = Pattern.compile(regex);
m = p.matcher(s);
System.out.println(m.find());
■ このスレッドは過去ログ倉庫に格納されています