Topic on Extension talk:RegexFunctions

Would be amazing if there was an {{#rswitch:}}

1
TaylanKammer (talkcontribs)

I'm thinking of something like this:

{{#rswitch: STRING
| REGEX_1 = RESULT_1
| REGEX_2 = RESULT_2
...
}}

Should be pretty self-explanatory what it's meant to do. The result parts should be able to reference capture groups. Basically, it would be like a bunch of nested rmatch usages.

Reply to "Would be amazing if there was an {{#rswitch:}}"