#java regex unclosed character class
Explore tagged Tumblr posts
topjavatutorial-blog · 7 years ago
Text
java regex pattern compile unclosed character class regex
In this article, we try to address a frequently encountered error with regular expression in java : PatternSyntaxException: Unclosed character class The following example demonstrates this : import java.util.regex.Matcher; import java.util.regex.Pattern; public class Hello { public static void main(String[] args) { String regex = "[a-zA-Z\\]*$"; String value = "hello"; boolean match =…
View On WordPress
0 notes