I have this code, but it does not seem to be working.
Pattern pattern=Pattern.compile("IMGURSESSION=([0-9a-zA-Z]*);");
Matcher matcher=pattern.matcher("IMGURSESSION=blahblah; path=/; domain=.imgur.com");
System.out.println(matcher.matches());
Would anyone know why?
Matcher#matches() method attempts to match the entire input sequence against the pattern.