JAVA/JSP string에서 특정 문자열 substring 찾기

String str = "this is nothing";

if (str.matches("(?i).*is.*"))
       out.println("찾았음");
else
       out.println("못 찾았음");






str.matches 를 쓰는데 여기서 (?i)은 대소문자 구분없이 찾는다는 것을 나타낸다고...

댓글

이 블로그의 인기 게시물

Ubuntu 20.04에 PyRFC 설치 방법