2009-12-19, 03:07 PM
Another simple numeric MyCode.
Latest version (to allow for things like 6 19ths)
Regex:
Replacement:
Outdated
Title:
Numeric Position Qualifers
Desc:
MyCode that Superscripts the st, rd, nd, and th numeric postion qualifiers when posting in 1st, 2nd, 33rd, and 9th type of format.
Regex:
Replacement:
Usage:
Latest version (to allow for things like 6 19ths)
Regex:
(\d+)(sts?|nds?|rds?|ths?)
Replacement:
$1<sup>$2</sup>
Outdated
Title:
Numeric Position Qualifers
Desc:
MyCode that Superscripts the st, rd, nd, and th numeric postion qualifiers when posting in 1st, 2nd, 33rd, and 9th type of format.
Regex:
(\d+)(st|nd|rd|th)
Replacement:
$1<sup>$2</sup>
Usage:
1st, 2nd, 53rd, 99th, etc...