221
edits
Changes
→Square brackets '[]'
|}
== Asterisk '<code>*</code>' ==
Represents zero or more occurrences of regular expression directly preceeding the asterisk (<code>*</code>). By itself, it does not match anything - it is NOT a wildcard. It is used in conjunction with literal matches, a period or other special characters. Some examples of asterisk in regular expressions:
|}
== Square brackets '<code>[]</code>' ==
Enclose a character class or group, similar to the shell. Any single character within the brackets will be matched. Hyphen can be used for defining a range of characters. Most special characters lose their special meaning. The caret sign at the beginning of the list means exclusion (<code>[^a]</code> means ''do not match a''). Some examples of square brackets in regular expressions are: