Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #1367

Re: preg_replace help

From Michael Fesser <netizen@gmx.de>
Newsgroups comp.lang.php
Subject Re: preg_replace help
Date 2011-05-02 18:05 +0200
Message-ID <jdltr6teu0qs55guggvgjbfoqnvrsjajgl@mfesser.de> (permalink)
References <oNidnfTM6dv7BCPQnZ2dnUVZ_gydnZ2d@cablespeedmi.com> <ipm7ge$l2m$1@dont-email.me>

Show all headers | View raw


.oO(Jerry Stuckle)

>First of all, the PHP preg_xxx() functions require a separator character 
>around the search string.  Stupid, I know, but then there are a lot of 
>stupid things in PHP.

It avoids ambiguities when using modifiers, which are noted after the
delimiter. Other languages do it the same way, so it's nothing you can
blame PHP for.

Micha

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

preg_replace help bill <nobody@spamcop.net> - 2011-05-02 07:45 -0400
  Re: preg_replace help Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-02 08:19 -0400
    Re: preg_replace help bill <nobody@spamcop.net> - 2011-05-02 11:44 -0400
      Re: preg_replace help "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-05-02 18:51 +0200
        Re: preg_replace help bill <nobody@spamcop.net> - 2011-05-04 06:41 -0400
    Re: preg_replace help Michael Fesser <netizen@gmx.de> - 2011-05-02 18:05 +0200
  Re: preg_replace help "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-05-02 16:19 +0200

csiph-web