note 98550 added to reference.pcre.pattern.posix
| From: | sonicpr at bol dot com dot br | Date: | Tue, 22 Jun 2010 15:24:59 +0000 |
| Subject: | note 98550 added to reference.pcre.pattern.posix | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170381@lists.php.net to get a copy of this message | ||
<?php
$string = 'Hello World!';
echo '"',ereg_replace('[A-Z]', '', $string),'"',
' = ',
'"',preg_replace('/[A-Z]/', '', $string),'"',
"\n";
// "ello orld!" = "ello orld!"
echo '"',eregi_replace('[A-Z]', '', $string),'"',
' = ',
'"',preg_replace('/[A-Z]/i', '', $string),'"',
"\n";
// " !" = " !"
?>
----
Server IP: 69.147.83.197
Probable Submitter: 201.15.250.24
----
Manual Page -- http://www.php.net/manual/en/reference.pcre.pattern.posix.php
Edit -- https://master.php.net/note/edit/98550
Del: integrated -- https://master.php.net/note/delete/98550/integrated
Del: useless -- https://master.php.net/note/delete/98550/useless
Del: bad code -- https://master.php.net/note/delete/98550/bad+code
Del: spam -- https://master.php.net/note/delete/98550/spam
Del: non-english -- https://master.php.net/note/delete/98550/non-english
Del: in docs -- https://master.php.net/note/delete/98550/in+docs
Del: other reasons-- https://master.php.net/note/delete/98550
Reject -- https://master.php.net/note/reject/98550
Search -- https://master.php.net/manage/user-notes.php