Tags: regexp

Sort by: Date / Title /

  1. 1 year ago by iegorka
    1. Groups multiple tokens together without creating a capturing group. This allows you to apply quantifiers to the full group.
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1747"></script>
  2. 1 year ago by sx
    1. preg_replace('/\\s{2,}/',' ',$string);
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1329"></script>
  3. 2 years ago by henri and saved by 4 others
    Une option toute bête pour grep qui permet d'afficher en couleur l'expression recherchée dans le résultat. Ca ne casse pas trois pattes à un canard mais c'est sympa. Cela permet aussi de voir sur quelle partie du résultat, le match de l'expression s'est faite. C'est bien pour progresser et comprendre les regexp.
    1. grep --color EXPRESSION [FICHIER]
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/758"></script>
  4. sponsorised links
  5. 2 years ago by thanh
    1. $foo = strip_tags($source, '<body>, <a>, <br>, <strong>, <b>, <i>, <em>, <font>');
    2. ereg ("<body([^>.]+)>(.+)</body>", $foo, $regs);
    3. echo $regs[2];
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/349"></script>

First / Previous / Next / Last / Page 1 of 1 (4 posteets)