Thanks Todd.

2007/3/6, Todd Ruston <[EMAIL PROTECTED]>:
On Mon, 5 Mar 2007 16:44:59 +0100, "Manuel Souto Pico"
<[EMAIL PROTECTED]> wrote:

> Todd, could you explain the syntax (?s) in your expression? I don't
> know that one, what does it mean?

Ups, I realize I meant to ask Ronald (who sent that answer), not Todd.
Sorry about that!

I'm on digest, so someone else (Ron most likely) may have answered
already. But if not:

That is a "pattern modifier," described in the BBEdit online help Grep
Reference, which lets . match returns. It is one of the keys for this to
work as I need it to. Your suggested pattern (the same but without that
modifier) only matches single consecutive duplicate lines, not "blocks"
of multiple lines that are duplicated.

Humm, I think I didn't understand what you wanted the first time. I
suppose you need to match not only , say, a 4-times a\r pattern:

a
a
a
a

but also, say, a 2-times a\rb\rc\r pattern:

a
b
c
a
b
c

Sorry for misreading...

Hope that makes sense!

It does, thaks a lot for your kind reply! :)

Manuel

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to