// Matches fine, but without escaping
$pattern = "
/
\[ # Open bracket
([^\]]+?) # Text, including whitespace
\] # Close bracket
/x
";// Throws an unmatched bracket warning
$pattern = "
/
[^\\] # Don't match if a backslash precedes
\[ # Open bracket
([^\]]+?) # Text, including whitespace
\] # Close bracket
/x
";// Ignores escaping: \[example] still matches
$pattern = "
/
[^\\\] # Don't match if a backslash precedes
\[ # Open bracket
([^\]]+?) # Text, including whitespace
\] # Close bracket
/x
";Nothing seems to change if I keep adding backslashes to that first matching thingy (i.e. the escaping still doesn't work). Any ideas?
Thanks much, -Dan
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

