Skip to main content
Inspiring
May 10, 2006
Answered

what does \[\[[a-zA-Z]*\]\] mean?

REReplace(variables.test, "\[\[[a-zA-Z]*\]\]", "", "ALL")>
can anyone tell me what \[\[[a-zA-Z]*\]\] is? what values will be converted to ""? thanks
This topic is closed to new replies. Start a new post to keep the conversation going.
Kronin555Correct answer
Participating Frequently
May 10, 2006
Normally, [ and ] are special characters in regular expressions. \ escapes them so that they equate to a [ or ] character, rather than a special character.

5 replies

Inspiring
May 10, 2006
btw how do you know \[\[ matches "[["?
is there any chart which matches which for a regular expression? thanks
Translate
Participating Frequently
May 10, 2006
You might try Googling regular expressions.....

Regular-Expressions.info

Regular Expression HOWTO

etc. etc.

Phil
Translate
Participating Frequently
May 10, 2006
\[\[[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 [[]]
Translate