Test, validate and match regular expressions
This regular expression is designed to match and capture a timestamp structured as `YYYY-MM-DD-HH:MM:SS`. It separates the date component into the first capturing group and the time component into the second capturing group. This pattern is ideal for parsing log files or data streams where you need to extract or isolate the date and time values from a combined timestamp string.