java - Regular Expression with combination of numbers,alphabets -


i'm trying retreive information pdf file using java

product(singlespace)11200216(tabspace)total(single space)32(>2tabsspace)47.58 product(singlespace)112002(tabspace)total(single space)34542(>2tabsspace)122347.58

i tried regular expression

 while((!(headitems1[index].matches("product\\s\\d{8,}[\\w]{1,}total"))))//||(!(headitems1[index].contains("total"))))  {      count++;      index++;  } 

but not working , please suggest me solutions.


Comments