I want to match literal /
character in regexp, so I use [/]
. Using this example results in
/ An unescaped delimiter must be escaped with a backslash ()
Am I wrong or is the website wrong? As far as I know, all characters inside square brackets []
must be present as literal without escape character.
Please, clarify to me.
EDIT:
I use MySQL. How is /
should be presented if I want to meet literal /
? Is using [/]
the right thing? Or [\/]
?