In Java, on a text like foo <on> bar </on> thing <on> again</on> now, I should want a regex with groups wich give me with a find "foo", "bar", empty string, ...
foo <on> bar </on> thing <on> again</on> now
I'm trying to extract a page name and query string from a URL which should not contain .html Here is an example code in Java:
.html
public class TestRegex { ...