|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-11-10 05:00 UTC] ysu at ysumail dot com
-Status: Open
+Status: Closed
[2010-11-10 05:00 UTC] ysu at ysumail dot com
[2010-11-10 21:17 UTC] cataphract@php.net
-Status: Closed
+Status: Bogus
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 13:00:01 2025 UTC |
Description: ------------ Trying the code, it'll give you this warning: Warning: preg_replace() [function.preg-replace]: Compilation failed: range out of order in character class at offset 6 in D:\www\integraCMS\scripts\testOffset.php on line 4 However, if you shuffle the characters around it'll not happen. Test script: --------------- <?php $value = "this @ is . a _ test-string"; $value = preg_replace('#[^\w_-.@]#','',$value); echo $value; ?>