Hereusfiltern von Substrings

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Hereusfiltern von Substrings

    Ich hab grad n Problem mit einem RegExp.

    Ich will aus so einem string:
    Code:
    ...bla <bla> bla {include:foo}bla{include:foo2}bla bla...
    'foo' und 'foo2' rausfiltern... wie stelle ich das an?

    Ich hab an preg_replace gedacht... dass ich alles ersetzte was nicht zwischen {include: und } steht... aber das ist irgendwie semioptimal.

    Hat vielleicht jemand ne Ahnung wie es sonst (ohne großen workaround) gehen könnte!?
    Zuletzt geändert von Tartax; 30.03.2004, 17:34.
    Die Musikreview Seite

    hi, i'm a signature virus. copy me into your signature to help me spread.

  • #2
    preg_match_all() wäre imho sinniger.
    Kissolino.com

    Kommentar


    • #3
      grrr, ja klar tut mir leid... war von dem int vor
      int preg_match_all ( string pattern, string subject, array matches [, int order])
      verwirrt

      Danke!
      Die Musikreview Seite

      hi, i'm a signature virus. copy me into your signature to help me spread.

      Kommentar

      Lädt...
      X