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


Hallo

Am 09.03.25 um 18:26 schrieb Hessler, Klaus-Michael:
Hallo,

die Funktion
    FINDEN("TextFinden"; "Text" [; Position])
liefert die Position einer Textzeichenkette in einer anderen Zeichenkette.

Ich suche diese Funktion, allerdings soll der "Text" vom Ende her durchsucht und das erste (also das letzte) Vorkommen von "TextFinden" werden geliefert werden; also 5 für "/etc/default/grub".Im Forum habe ich einen Vorschlag gefunden <https://www.oooforum.de/viewtopic.php?p=236223&sid=b1f52681d6d18785de6399ba8ffaffeb#p236223>, allerdings liefert mir schon der Teil
     =SUCHEN("\\[^\\]*$";"/etc/default/grub")

hast du Tomaten auf den Augen? Ein \backslash ist halt kein /slash.

____

=LÄNGE(REGAUS(A1;"/[^/]*$"))  #in A1 steht »/etc/default/grub«

evtl. möchtest du *eigentlich*

=REGAUS(A1;"/[^/]*$")



--
Liste abmelden mit E-Mail an: users+unsubscribe@de.libreoffice.org
Probleme? https://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: https://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: https://listarchives.libreoffice.org/de/users/
Datenschutzerklärung: 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.