Member since Jun 26, 2012
- Profile: /members/10070-keith-starsmeare.htm
- Comments: 1
Recent Blog Comments By Keith Starsmeare
Case Insensitive Java Regular Expressions - How Did I Miss That!?!
Posted on Jun 26, 2012 at 7:20 AM
@Leandro, The (?i) is documented as working with US-ASCII characters. If you want to work with Unicode characters then you need to use (?iu): String str = "Águia"; str = str.replaceAll("(?iu)[á]", "a"); http://docs.oracle.com/javase/6/docs/api/java/util/regex/Patter... read more »