W dniu 2013-11-26 18:51, Brian Barker pisze:
At 16:42 26/11/2013 +0100, Gordom Noname wrote:
I can't figure out how to write a regex to find all text in between
certain words. The problem I have is related to line break marks.
These two words belong to different paragraphs and therefore the text
I'm looking for consists of numerous line break or paragraph break marks.
Let say the text, I'm looking for, follows abc123 and goes before
xyz. Of course I can temporally replace all line break marks with
some other character and use a regex like this one for example:
abc123.+xyz. It works but I would like to find a straight way to do it.
There's no need to replace the line breaks: just search for
abc123(.|\n)+xyz instead. This finds one or more of either any
character or a line break bracketed by your sentinel strings.
> But no: I
don't see any simple way to match an expression across a paragraph break.
That's a pity :(.
Regards,
gordom
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.