Template:WikiIDRegex: Difference between revisions

From LOTR-TCG Wiki
(Created page with "<noinclude> The following regex is used to match a Wiki card ID, which is of the form: LOTR-EN01S001.0 See LOTR-TCG:NamingConventions for a breakdown. </noinclude>[A-Z]...")
 
(Updating regex to account for 2-character Language Code (rather than 3-char) and permitting the 2-character Set Number to be alphanumeric)
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:


LOTR-EN01S001.0
LOTR-EN01S001.0
The set is treated as a


See [[LOTR-TCG:NamingConventions]] for a breakdown.
See [[LOTR-TCG:NamingConventions]] for a breakdown.


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

Latest revision as of 05:08, 21 August 2022

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+