R
Reimer
Aktives Mitglied
Thread Starter
- Dabei seit
- 01.06.2007
- Beiträge
- 327
- Reaktionspunkte
- 3
Hallo, ich habe Probleme mit den Zeilenumbrüchen in meinem Regex.
Ich will sämtlichen Inhalt von 'Sample text' bis zum '</p>' filtern.
Der reguläre Ausdruck ist nach Überlegungen ziemlich einfach, trotzdem hänge ich da fest.
Kann ich sowas angeben wie "alle Symbole bis auf die Zeichenkette </p>", als Regex ausgedrückt: [^(<\/p>)]* ?
Ich will sämtlichen Inhalt von 'Sample text' bis zum '</p>' filtern.
Der reguläre Ausdruck ist nach Überlegungen ziemlich einfach, trotzdem hänge ich da fest.
Code:
... Irgendein Text ... Sample text:</strong> <p>John J. Murphy doesn't talk much about World War II, but when he does, the POIGNANT MEMORIES of his service come rushing back.<br />
<br />
(The New Haven Register)<br />
<br />
---<br />
The perfume from the great clusters of yellow daffodils and violets floated up from the flower sellers' baskets below; the fresh, warm air seemed to bring him POIGNANT MEMORIES of crocus-starred lawns, of trim beds of hyacinths, of the song of birds, of the perfume of drooping lilac.<br />
<br />
- The Malefactor, by British novelist E. Phillips Oppenheim</p> ... Hier kommt noch mehr Inhalt ...
Kann ich sowas angeben wie "alle Symbole bis auf die Zeichenkette </p>", als Regex ausgedrückt: [^(<\/p>)]* ?
Zuletzt bearbeitet: