What\'s the regex to match a square bracket? I\'m using \\\\] in a pattern in eregi_replace, but it doesn\'t seem to be able to find a ]..
\\\\]
eregi_replace
]
\] is correct, but note that PHP itself ALSO has \ as an escape character, so you might have to use \\[ (or a different kind of string literal).
\]
\
\\[