This content has been marked as final. Show 5 replies
\[\[[a-zA-Z]*\]\] is a regular expression.
\[\[ matches "[["
[a-zA-Z]* matches zero or more alpha characters, both upper and lowercase
\]\] matches "]]"
Therefore, the purpose of this regular expression is to remove any instances of [[something]] or [[anything]] or []
btw how do you know \[\[ matches "[["?
is there any chart which matches which for a regular expression? thanks
Normally, [ and ] are special characters in regular expressions. \ escapes them so that they equate to a [ or ] character, rather than a special character.