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: | ||
− | {{mirc title| | + | {{mirc title|Wildcard}} |
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 7: | ||
* & - 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 | ||
Line 29: | Line 29: | ||
<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 wildcard character (that is, not always the case for &), you can try to use a | + | If you need to use any of these special characters as plain text in an expression where they are taken as wildcard character (that is, not always the case for &), you can try to use a [[Regex - mIRC|regular expression]] instead. |
The number of function/feature of the language supporting wildcard matching is simply too high to make a list, but here are the main usage: | The number of function/feature of the language supporting wildcard matching is simply too high to make a list, but here are the main usage: | ||
Line 36: | Line 36: | ||
<source lang="mIRC"> | <source lang="mIRC"> | ||
if (test* iswm $1-) { } | if (test* iswm $1-) { } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</source> | </source> | ||
− | Wildcard-matches can also be used in {{ | + | Wildcard-matches can also be used in {{mirc|$wildtok|token manipulation}}, {{mirc|$hfind|hash tables}}, {{mirc|$fline|custom windows}}, {{mIRC|on events|ON events}}, {{mirc|$var|variables}}, etc. etc. |
− | [[Category:mIRC | + | [[Category:mIRC]] |