View Single Post
Old 03-06-2011, 04:31 PM   #14
pietro99
Connoisseur
pietro99 has learned how to buy an e-book online
 
Posts: 55
Karma: 76
Join Date: Sep 2010
Location: Australia
Device: Kindle 3
Quote:
Originally Posted by bob_tm View Post
My mistake in the original post (som errors there - sorry).

9781416585855TEXT.indd 57<br>

You suggested:

\d+TEXT\.indd \s\ d+<br>

I suggest:
\d+TEXT\.indd\s+\d+<br>


For:

25/11/09 3:31:56 PM<br>

You suggested:

25/11/09\s\d+\:d+\:d+ PM<br>

I suggest (note the misplaced "\" above that originated from my typos):

25/11/09\s\d+:\d+:\d+\s+PM<br>

Sorry about this. Hopefully the regexps make more sense as written here (though they could be wrong too). All you should need here are normal text, \s and \d for white space and digit and the '+'-suffix to these in order to denote "one or more occurrences".

bob_tm
You are so quick!

We are getting there. The 2nd one found 311 instances but the 3rd one still doesn't find any.

EDIT: Got it! The 3rd line that works is:

25/11/09\s+\d+:\d+:\d+\s+PM<br>

The s becomes s+ as I think there are 2 spaces after the date.

That has been a most edifying experience. Thanks for all your input.

Last edited by pietro99; 03-06-2011 at 04:37 PM. Reason: Update
pietro99 is offline   Reply With Quote