Name: Anonymous 2007-11-27 2:23
I'm using java, not by choice. Anyway, I'm trying to parse HTML google results, specifically the total number of results from:
"Results 1 - 100 of about 5,533 for x"
If I make my regular expression <b>(\\d+)</b>, it returns the number 1, as it should. If I make the expression \\s*+<b>(\\d+)</b>\\s* it also still works and finds the number 1, as it should. Now I've tried about\\s*+<b>(\\d+)</b>\\s*+for which should return 5, but now it's not finding anything at all. Where am I going wrong? (apart from having to use java in the first place)
"Results 1 - 100 of about 5,533 for x"
If I make my regular expression <b>(\\d+)</b>, it returns the number 1, as it should. If I make the expression \\s*+<b>(\\d+)</b>\\s* it also still works and finds the number 1, as it should. Now I've tried about\\s*+<b>(\\d+)</b>\\s*+for which should return 5, but now it's not finding anything at all. Where am I going wrong? (apart from having to use java in the first place)