User:Ohconfucius/test/MOSNUM dates code.js: Difference between revisions

Content deleted Content added
trying again
tweaks
Line 171:
 
//remove unlinked ordinal date formats
ohc_regex(/(\W)@Day, @Day(\s(?:and|&|to|or)\s)@Day(?:\sof\s?)?(?:[ ]| )@Month(?=\W\D)/gi, '$1@Day1, @Day2$2@Day3 @LMonth');
ohc_regex(/(\W)@DD@th?(\s(?:and|&|to|or)\s)@DD@th?(?:\sof\s?)?(?:[ ]| )@Month(?=\W\D)/gi, '$1@Day1$2@Day2 @LMonth');
ohc_regex(/(\W)(?:the |)@DD@th?(?:\sof)\s@Month,? @YYYY(?=\W\D)/gi, '$1@Day @LMonth @YYYY');
ohc_regex(/(\W)(?:the |)@DD@th?(?:\sof)\s@Month(?=\W\D)/gi, '$1@Day @LMonth');