I'm having a hard time getting my regex to work, or I'm pretty sure that's where the problem is.
Here's an example of the source code, I'm trying to get all the normal text from the whole source code, word by word, and no number's or special symbols.
<a href="/public/">A university of fine tradition, dynamic study life and international possibilities.<span></span> </a>
Here's the part of the code.
String theRegex = "</>>(\\w+)</<> ";
String str2Check = "<a href="/public/">A university of fine tradition, dynamic study life and international possibilities.<span></span> </a>";
Pattern p = Pattern.compile(theRegex, Pattern.MULTILINE);
Matcher m = p.matcher(str);
if (m.find()) {
System.out.println(m.group(1));
}
I've tried different regex combinations, but somehow I cant get them right (probably because I keep mixing with them).
Hopefully you can understand what I'm asking here, thank you.