|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-17 14:33 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 15:00:01 2025 UTC |
While generating the new CHM highlights I came across a bug. Seems like the syntax highliter does not like backslashes in strings, or something like that... This example was on the preg_match_all() page. The original source: preg_match_all ("/(<([\w]+)[^>]*>)(.*)(<\/\\2>)/", $html, $matches); The output of the highlight: preg_match_all ("/(<([ Warning: Unexpected character in input: '\' (ASCII=92) state=1 in E:\phpcvs\phpdoc\htmlhelp\filter_files.php on line 180 w]+)[^>]*>)(.*)(< Warning: Unexpected character in input: '\' (ASCII=92) state=1 in E:\phpcvs\phpdoc\htmlhelp\filter_files.php on line 180 / Warning: Unexpected character in input: '\' (ASCII=92) state=1 in E:\phpcvs\phpdoc\htmlhelp\filter_files.php on line 180 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in E:\phpcvs\phpdoc\htmlhelp\filter_files.php on line 180 2>)/", $html, $matches);