Template:Str test

From Moegirlpedia
Jump to: navigation, search
Template-info.svg Template Documentation  [Edit]

Introduction

This template will determine whether the regular expression can match the string. If it matches at least one result successfully, it will output 1 by default, otherwise it will output empty.

parameters

  • str: the string to match, this parameter also corresponds to anonymous parameter 1
  • ptn: Regular expression, which can be passed in in the format of <nowiki> tags. This parameter also corresponds to anonymous parameter 2
  • then: match to output, default is number 1
  • else: no output matched