Johannes Bauer: einfaches Regexp (beliebige Zeichen vor und hinter Suchwort)

Hi Leute,

könnte mir jemand ein einfaches REgexp erstellen? Vor und hinter meiner Variable $suchwort kann kommen was will :-).

Danke im Voraus

Johann

  1. Hi,

    könnte mir jemand ein einfaches REgexp erstellen? Vor und hinter meiner Variable $suchwort kann kommen was will :-).

    gerne: /$suchwort/

    Cheatah

    --
    X-Will-Answer-Email: No
  2. Huhu Johannes

    für Deinen (Trivial-) Fall tut es auch folgendes

    http://www.php.net/manual/en/function.strpos.php

    ansonsten schau mal im Manual

    http://www.php.net/manual/en/ref.regex.php
    http://www.php.net/manual/en/pcre.pattern.syntax.php
    http://www.php.net/manual/en/pcre.pattern.modifiers.php

    Viele Grüße

    lulu

    --
    bythewaythewebsuxgoofflineandenjoytheday