Any help would be appreciated. I am learning
Java. I have a
string (see below). I need to parse out the number of documents (in this case there are 454). This number may change so the only static text on here is "Advanced..." and "Document(s)". How can I parse out just that number?
String alltext2 = (String)Table_HtmlTable_0().getProperty(".text");
System.out.println("AllText2: " + alltext2);
AllText2: Employee Revenue � � � Corporate Categories >�Employee Revenue �Search� Advanced... 454 Document(s)�in�Employee Revenue �� �View Details � �Add to My InfoView �
In the past, I have taken the string and matched on a specific value so I know how to do that and I've used the indexOf method. But, how do I find a value based on static text surrounding it? I'm looking at String methods and regular expressions...I am trying to find out the best way to do this.
Thanks,
Laura