String inputs ="td class=\"prodcatnamelinkwrap\"";
Pattern p = Pattern.compile("<td cellspacing=\"0\" align=\"center\" valign=\"bottom\" class=\"prodcatimagewrap\">");
Matcher m = p.matcher(inputs);
What should i want to do to match this format. Any one help me out Thanks in advance
How does the find method works. I have to match td height="45px" valign="top" from this text
td align="center" height="45px" valign="top">.
But it says false all the time
For reference please find my code
Pattern replace5 = Pattern.compile(".*\r?\n",Pattern.MULTILINE);
Matcher matcher5 = replace5.matcher("td[@height=\"45px\"][@valign=\"top\"]".replaceAll("[\\[\\@]+"," "));
pattern3 = Pattern.compile(matcher5.replaceAll(" ").replaceAll("\\//", "").replaceAll("\\]",""));
pm3 = pattern3.matcher("<td align="center" height="45px" valign="top">");
if(pm3.find())
....It always results in false.Can anyone help me out