I need to get the link out of a bunch of HTML and im using patterns for that. The problem is that the pattern includes the text before and after (.*?). Should it do that? I thought it only includes the text between boundaries.
Ive modified the code a little bit and now it only includes the quote.
Pattern p = Pattern.compile("http://cdn.posh24.se/images/:profile(.*?)");
Matcher m = p.matcher(splitStrings[0]);;
[http://cdn.posh24.se/images/:profile/088484075fb5b4418f5cb8814728decab",... that is the output, this is the expected: [http://cdn.posh24.se/images/:profile/088484075fb5b4418f5cb8814728decab