This is super slow. Please don't use regex for such simple problem.
If you put in to account that date header processing it usually the most expensive part of request processing (before it comes to user application) you simply cannot afford such expensive operation.