0

I have a link like this:

href

I want to get the name of it (current community) with java. I tried pattern/matcher but I cannot remember a token for this case.

My href's are in the string 'title_string'

Pattern p_title = Pattern.compile(">.<");
Matcher m_title = p_title.matcher(title_string);
while (m_title.find()) {
    String m_title_string = m_title.group().toString();
    System.out.println(m_title_string);
}

Maybe somebody has an idea?

RamenChef
  • 5,557
  • 11
  • 31
  • 43
  • http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags – Reimeus Nov 01 '16 at 18:28
  • @Reimeus http://stackoverflow.com/a/1732454/6999902, to be exact –  Nov 01 '16 at 18:57
  • Please [edit] your question and include the HTML as text, not as an image. Also consider using an HTML parser. –  Nov 01 '16 at 18:58

0 Answers0