/ Published in: Other

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(^ # \1 start of line (?<sm>\d{1,2}) # "sm" start month / (?<sd>\d{1,2}) # "sd" start day (/(?<sy>\d{2,4}))? # \2 start year (optional) \s*? # space separator (-\s*? # \3 optional end date (?<em>\d{1,2}) # "em" end month / (?<ed>\d{1,2}) # "ed" end day (/(?<ey>\d{2,4}))? # "ey" end year (optional) )? # ending date is optional \s*? ((?<task>[A-Z]{2,4})\s*?)? # optional task code (?<desc>.*) # "desc" description of task )
Comments
