Is it possible to match multiple lines in a single match? For instance, to match:
A heading ========
I tried:
^(.+?)\n={3,}$
but it doesn't seem to work. Any guesses why? I hope I have just made a silly mistake somewhere.
Haris
On Jun 17, 2005, at 1:49, Charilaos Skiadas wrote:
Is it possible to match multiple lines in a single match? For instance, to match:
Currently not, no.
The main reason is that if I did allow multi-line matches, changing one line could cause lines above the changed line to change -- basically meaning that each change in the document would require re- parsing from the start of the document.
On Jun 16, 2005, at 7:05 PM, Allan Odgaard wrote:
On Jun 17, 2005, at 1:49, Charilaos Skiadas wrote:
Is it possible to match multiple lines in a single match? For instance, to match:
Currently not, no.
The main reason is that if I did allow multi-line matches, changing one line could cause lines above the changed line to change -- basically meaning that each change in the document would require re- parsing from the start of the document.
That makes sense. Is it then possible to specify exactly what would be allowed within a begin-end patterns? I am thinking of matching the first line in the begin block, and === line in the end block, and ideally would like to say: Nothing is allowed between.
Haris
On Jun 17, 2005, at 2:24, Charilaos Skiadas wrote:
That makes sense. Is it then possible to specify exactly what would be allowed within a begin-end patterns? I am thinking of matching the first line in the begin block, and === line in the end block, and ideally would like to say: Nothing is allowed between.
No, sorry. I might come up with some solution to this current limitation in the future, but so far I haven't really thought of anything that I liked.