Template:WikiIDRegex

From LOTR-TCG Wiki
Revision as of 05:08, 21 August 2022 by Teltura (talk | contribs) (Updating regex to account for 2-character Language Code (rather than 3-char) and permitting the 2-character Set Number to be alphanumeric)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The following regex is used to match a Wiki card ID, which is of the form:

LOTR-EN01S001.0

The set is treated as a

See LOTR-TCG:NamingConventions for a breakdown.

[A-Z]{1,5}-\w{1,2}\w\w[A-Z]\d\d\d\.\d+