Reduce pre-0.5 and post-0.5 taskIDs to one Regex

- Added migration tests
- Fixes 671