From WikiChip
Editing mirc/identifiers/$regsubex
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 3: | Line 3: | ||
'''Note''': All the matches are made before the replacements, the total number of matches as well as any capture of any match can be accessed in the replacement with {{mIRC|$regmlex}} | '''Note''': All the matches are made before the replacements, the total number of matches as well as any capture of any match can be accessed in the replacement with {{mIRC|$regmlex}} | ||
− | '''Note2''': $regsubex returns the orignal input if there is no match found, if the /S modifier is used, the control code from the original input will | + | '''Note2''': $regsubex returns the orignal input if there is no match found, if the /S modifier is used, the control code from the original input will be returned. |
== Synopsis == | == Synopsis == | ||
Line 25: | Line 25: | ||
== Example == | == Example == | ||
<source lang="mIRC">//var %a | echo -a $regsubex(abcd,/([a-z])/g,-\n \1-)</source> | <source lang="mIRC">//var %a | echo -a $regsubex(abcd,/([a-z])/g,-\n \1-)</source> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Compatibility == | == Compatibility == | ||
{{mIRC compatibility|6.17}} | {{mIRC compatibility|6.17}} | ||
+ | |||
== See Also == | == See Also == | ||
* {{mIRC|$regml}} | * {{mIRC|$regml}} | ||
− | |||
* {{mIRC|$regsub}} | * {{mIRC|$regsub}} | ||
* {{mIRC|$regex}} | * {{mIRC|$regex}} | ||
− | + | ||
+ | [[Category:mIRC identifiers|regsubex]] |