From: Peter Graves <peter@ar...> - 2003-06-26 15:19:05
On Thu, 26 Jun 2003 at 14:37:24 +0200, Olivier Imbert wrote:
> I would like to replace "blabla" by "bla<newline>bla".
> I tried "blabla" replaced by "bla\nbla" ... it does not work ...
> How can I do that ?
There's an experimental feature that lets you do this.
Add this line to ~/.j/prefs:
enableExperimentalFeatures = true
Then, when you do replace (Ctrl R), you'll get another checkbox under
the "Regular expression" checkbox called "Multiline pattern". Check
both this box and the "Regular expression" box, and then enter "blabla"
as the pattern and "bla\nbla" as the replacement and it should work.
(Note that you're doing a regular expression search in this situation,
so the search pattern will be interpreted as a regular expression, not
as a simple string.)
This feature is probably ready to graduate from experimental status;
there haven't been any bugs reported against it in months (if not