Quelltext:
Code
Name: Mustermann
Mail: mustermann@mustermann.de
Thema: Volkslauf
Bilderpfad: serien/lauf/haupt
--@@Foto-Anfang@@--
1: bb_20070510_121.JPG
2: bb_20070510_122.JPG
3: bb_20070510_123.JPG
4: bb_20070510_124.JPG
5: bb_20070510_125.JPG
6: bb_20070510_126.JPG
7: bb_20070510_127.JPG
8: bb_20070510_128.JPG
9: bb_20070510_129.JPG
10: bb_20070510_130.JPG
11: bb_20070510_131.JPG
12: bb_20070510_132.JPG
13: bb_20070510_133.JPG
-@@@Foto-Ende@@@-
Alles anzeigen
Makrobefehl in Filteraktion "Formatierte Nachricht erstellen":
Code
%__H=%XMP_GREP("%TEXT","bb_\d{8,8}_\d{3,4}\.JPG",M)%-
%XMP_StrLines("%__H",,)
%XMP_StrLnCnt("%__H")%-
Ausgabe:
Code
1: bb_20070510_121.JPG
2: bb_20070510_122.JPG
3: bb_20070510_123.JPG
4: bb_20070510_124.JPG
5: bb_20070510_125.JPG
6: bb_20070510_126.JPG
7: bb_20070510_127.JPG
8: bb_20070510_128.JPG
9: bb_20070510_129.JPG
10: bb_20070510_130.JPG
11: bb_20070510_131.JPG
12: bb_20070510_132.JPG
13: bb_20070510_133.JPG
14
Alles anzeigen
Wieso 14? XMP_GREP liefert nur 13 Zeilen zurück, wenn ich die Doku richtig verstehe.
Ich hätte noch einen Verbesserungsvorschlag für %XMP_StrLines. Könnte man nicht die 2 optionalen Parameter weglassen, wenn nichts angegeben wird?