Date: prev next · Thread: first prev next last
2021 Archives by date, by thread · List index


Hi David,

On Fri, 2021-05-21 at 17:19 +0100, David Lynch wrote:
If I use the REGEX tester <https://regex101.com/>
with regular expression (?=(29|79|97))
and test string 29791
I get 3 matches 29, 97,79, as I expect.
On the other hand, if I enter =REGEX("29791","(?=(29|79|97))",,1)

I think you have to escape the parentheses vis:

=REGEX("29791","\(?=\(29|79|97\)\)",,1)

that yields 79

Regards,
Tony.
-- 
Tony Arnold MBCS, CITP | Senior IT Security Analyst | Directorate of IT Services | Office 1, 
Kilburn Building | The University of Manchester | Manchester M13 9PL | T: +44 161 275 6093 | M: +44 
773 330 0039

-- 
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


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.