Back to How to Use Top

Limit the type of responses to items to be entered at the time of entry.

If the items that participants answer when entering a tournament are free-form, regular expressions can be used to restrict the responses.

How to use

  1. Access https://tonamel.com/organize/ while logged in.
  2. Select a tournament.
  3. In the entry section of the tournament information, click on the [・・・] button to the right of the entry item you wish to restrict responses to.
  4. Click [Limited Response].
  5. Fill in the regular expression on the [Limited Response] form that appears on the items participants are asked to answer at the time of entry.
  6. Click [Create the Event] or [Save Changes] in the page footer.

Main Patterns Available

     : Copy the strings directly into the regular expression form for the items you wish to restrict responses to on the tournament creation page, or rewrite parts of them depending on what you wish to restrict.

  • Numerals only
    ^\d+$
  • 10 digits only
    ^\d{10}$
  • 8-10 digits only
    ^\d{8,10}$
  • 7 single-byte alphanumeric characters
    ^[a-zA-Z0-9]{7}$
  • Alphabetic characters only
    ^[a-zA-Z]+$
    Sample Answer: Tonamel
  • String starting with abc
    ^abc.+$
    Sample Answer: abcTONAMEL!
  • Non-numeric character string
    ^[^\d]+$
    Sample Answer: Tonamel!
  • URL forward match
    ^https?:\/\/tonamel\.com\/competition\/.+$
    Sample Answer: https://tonamel.com/competition/ABCDE
    • The red text corresponds to the URL.
    • When rewriting a different URL, please put \ before any of the following characters if it contains any of the following characters.
      \*+.?{}()[]^$-|/
      E.g.: \?
  • Twitter account name with @.
    ^@[\w]{1,15}$
    Sample Answer: @TonamelJP
  • Twitter account URL
    ^https:\/\/twitter\.com\/[\w]{1,15}$
    Sample Answer: https://twitter.com/TonamelJP
  • Discord username and Discord tag
    ^(?!(discord|everyone|here)#)((?!@|#|:|```|\s).{2,32})#\d{4}$
    Sample Answer: Tonamel#1234
  • E-mail address
    ^[\w\.\-\+]+@[\w\-]+\.[\w\.\-]+$
    Sample Answer: hoge@tonamel.fuga