- What would the regex be to detect this pattern?
- 2012-01-01 06:05:00
- ^[d]{4}-[d]{2}-[d]{2}[ ][d]{2}:[d]{2}:[d]{2}$
- ^ = start of string
- [d] = any number (0 - 9)
- {n} = exactly n times
- - = a hyphen
- [ ] = a space
- $ = end of string
- d{4}-d{2}-d{2}[ ]d{2}:d{2}:d{2}