11
\$\begingroup\$

D&D editions sometimes colloquially go by their edition number alone, and people sometimes enter just the edition for a tag. We've had to burninate the tag a few times.

I'd like the following regex pattern to get blacklisted in tags:

^\d-?(e|ed|edition)$

This ought to blacklist any tag that's simply a digit followed by e, ed, or edition, optionally separated by a dash. (And not blacklist [dnd-5e] or similarly formed tags.)

I recommend the following for the blacklisted tag popup message:

Our site caters to hundreds of tabletop RPGs. Say which game you're playing, not just its edition, e.g.: , , ,

Our site caters to hundreds of tabletop RPGs. Say which game you're playing, not just its edition, e.g.: [tag:dnd-5e], [tag:7th-sea-2e], [tag:shadowrun-5e], [tag:gurps-4e]
\$\endgroup\$
11
\$\begingroup\$

Went with ^\d+(st|nd|rd|th)?-?(e|ed|edition)$ just to discourage obvious work-arounds:

\$\endgroup\$
  • 2
    \$\begingroup\$ Thanks, those workarounds are a good idea. \$\endgroup\$ – doppelgreener Aug 20 '18 at 22:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .