Some time ago Brian Barker provided a brilliant formula for finding all text between less-than and
greater-than signs, namely
<[^>]*>
I’ve been trying to adapt it to finding text within brackets [thus], but without success. I know
that brackets as such, as distinct from regular expressions, are identified as \[ and \]; so the
formula I’ve come up with is
\[[^>]*\]
Unfortunately there are two things wrong with this: (1) it finds all text until a later closing
bracket (seemingly the last one in the same paragraph) but not necessarily the immediately
following one, and (2) the selection includes the brackets themselves, whereas I only want the text
that they enclose.
Am I attempting the impossible? Any help gratefully received.
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Context
- [libreoffice-users] Find all within brackets · Séamas Ó Brógáin
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.