Alan - Thanks - the (?m).*?foo is working perfectly. (I'm in the process of trying to figure out how/why :-) I'm unable to get the .*$(.*$){5} example to work though - it selects from the current position to the end of the current line, but no further.
I'm doing both of these in the standard find dialog (cmd-F), with the 'Regular expression' option selected. I've tried variously w/ and w/o the 'Ignore case' and 'Wrap around' options checked.
Is there something else I should be doing on the .*$(.*$){5} example?