You could always check the index of the tag substrings, and then extract the substring from there.
However, a regex can be used — you'd need to make use of both negative lookahead and lookbehind [I imagine].
Check out "Special constructs (non-capturing)" here:
http://java.sun.com/j2se/1
Main Topics
Browse All Topics





by: CEHJPosted on 2006-04-04 at 09:54:36ID: 16373144
Take a look at
avaworld/j w-07-2001/ jw-0713-re gex- p3.htm l
http://www.javaworld.com/j