This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am running an Interpreted Java script and trying to match a line of input to regex "td title".
Please tell me where I err.
Edit: I figured that .matches requires exact match.
I need a method that determines whether input contains a match for the regex.
Rob Spoor wrote:Using ".*td title.*" for the regex would also have worked. The .* means any number of characters, so that full regex means "anything or nothing, followed by td title, followed by anything or nothing".