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

Content deleted Content added
+navsource
tweak birth range code
Line 251:
ohc_regex(/(\D\W)@DD\s@Month,? @Year(?:( |\s)(?:[-–—]|–)(?: |\s)?)@DD\s@Month,? @Year(?=\D\W)/gi, "$1@Day1 @LMonth1 @Year1$2– @Day2 @LMonth2 @Year2");
ohc_regex(/(\D\W)@Month\s@DD,? @Year(?:( |\s)(?:[-–—]|–)(?: |\s)?)@Month\s@DD,? @Year(?=\D\W)/gi, "$1@LMonth1 @Day1, @Year1$2– @LMonth2 @Day2, @Year2");
ohc_regex(/(\D\W)@DD\s@Month,? @Year(?:,?(?:[-–—]|–)(?: |\s)?)@DD\s@Month,? @Year(?=\D\W)/gi, "$1@Day1 @LMonth1 @Year1$2 – @Day2 @LMonth2 @Year2");
ohc_regex(/(\D\W)@Month\s@DD,? @Year(?:,?(?:[-–—]|–)(?: |\s)?)@Month\s@DD,? @Year(?=\D\W)/gi, "$1@LMonth1 @Day1, @Year1$2 – @LMonth2 @Day2, @Year2");
 
//nbsp in publication archive & access dates