----- Original Message -----
> and wish to replace the "paragraphs" a..b. Using re-builder (and
> based
> on http://www.emacswiki.org/emacs/MultilineRegexp) I have constructed a
> successfully matching regex:
>
> "a\\(.*
> ?\\)*?*b"
The expression, has some weird things. * means 0-to-n occurences, ? means 0-or-1 occurences. So, you probably do not want *?*.
Try M-x regexp-builder
It's a nice interactive way to put together your regexp.
I'm having trouble with a multi line regex: can any one show me where
I'm going wrong?
I have a data file of the form:
a
1
b
a
2
b
and wish to replace the "paragraphs" a..b. Using re-builder (and based
on http://www.emacswiki.org/emacs/MultilineRegexp) I have constructed a
successfully matching regex:
"a\\(.*
?\\)*?*b"