From WikiChip
Editing mirc/wildcard
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
Wildcard characters are special characters that are interpreted when comparing text. | Wildcard characters are special characters that are interpreted when comparing text. | ||
Line 7: | Line 6: | ||
* & - matches a whole word if used alone | * & - matches a whole word if used alone | ||
− | For example the expression "t*s a *?t" | + | For example the expression "t*s a *?t" matchtes the string "this is a text" |
− | If & is not used alone it matches the plain text '&' character | + | If & is not used alone it matches the plain text '&' character. It also doesn't match $chr(32) |
− | |||
− | |||
"test &" matches "test this" or "test that" | "test &" matches "test this" or "test that" | ||
Line 21: | Line 18: | ||
"test th&s" matches only "test th&s" | "test th&s" matches only "test th&s" | ||
− | "test | + | "test " doesn't match "test $chr(32)" |
− | Be careful when using the & wildcard character inside /if | + | Be careful when using the & wildcard character inside /if or $iif, it could be interpreted as the & bitwise operator: |
<source lang="mIRC">if (test & iswm test this)</source> | <source lang="mIRC">if (test & iswm test this)</source> | ||
Line 29: | Line 26: | ||
<source lang="mIRC">if ($(test &) iswm test this)</source> | <source lang="mIRC">if ($(test &) iswm test this)</source> | ||
− | If you need to use any of these special characters as plain text in an expression where they are taken as | + | If you need to use any of these special characters as plain text in an expression where they are taken as special (not always for &), you can try to use a regular expression instead. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |