Mah pish wrote:and the string testing would be something like this:
Paul Clapham wrote:Sorry , i'd forgotten some parts of the html code
Mah pish wrote:and the string testing would be something like this:
That isn't what I would expect as the result of
Not unless the method is really badly named, that is. I suggest you look at that a little more carefully. I know nothing about this StringUtils class but it's possible that the result of that substringBetween call is
and not
as you seem to be assuming.
Matthew Brown wrote:The first one matches fine - on line 38. But you then throw the match away. It's only the second and subsequent matches that are being output in the while loop.