|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-08-04 12:28 UTC] php dot net at bokehman dot com
Description: ------------ The regex posted below is legal and fixed length but raises the following warning: lookbehind assertion is not fixed length Situation: negative lookbehind contains a negated character class. This bug makes it impossible to use a negated character class anywhere within a negative lookbehind. Reproduce code: --------------- $regex = '/(?<=[^x])/'; PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 21:00:02 2025 UTC |
<?php echo preg_replace('/(?<=[^x])/', '.', 'wx'); ?> Error message: Warning: preg_replace() [function.preg-replace]: Compilation failed: lookbehind assertion is not fixed length at offset 8