![]() |
AW: Suchbegriff als "ganzes Wort" innerhalb eines Textes suchen
Zitat:
|
AW: Suchbegriff als "ganzes Wort" innerhalb eines Textes suchen
Zitat:
War einfacher |
AW: Suchbegriff als "ganzes Wort" innerhalb eines Textes suchen
Als Idee, wieso keine regulären Ausdrücke verwenden?
![]() The TMatch record provides several properties with details about the match. Value returns the matched string. Index and Length indicate the position in the input string and the length of the match. The Matches method takes a string and returns a TMatchCollection record. The default Item[] property of this record holds a TMatch for each match the regular expression found in the string. If there are no matches, the Count property of the returned TMatchCollection record is zero. Das hier gibt dir alle "hallo" auf die ein Leerzeichen vorrangeht und folgt.
Delphi-Quellcode:
-
Matches(' hallo ');
Das hier gibt dir alle "hallo" auf die ein Leerzeichen ein Punkt ein Fragezeichen oder ein Ausrufezeichen folgt oder garnichts von allem (also EOL)
Delphi-Quellcode:
Matches(' hallo[ ,/./?/!]?');
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:31 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz