I would like to capture the date and time from the text below.
!----------------------------------------------
! 16/Oct/2020 10:11:14 12/Nov/2020 11:21:32
!----------------------------------------------
! 17/Oct/2020 10:11:14
!----------------------------------------------
! 18/Oct/2020 11:00:00 21/Oct/2020 12:00:00
!----------------------------------------------
My regex query:
(?P<StartDate>(?<=!\s)[^\s]+)\s+(?P<StartTime>[^\s]+)\s*(?P<EndDate>[^\s]+)\s+(?P<EndTime>[^\s]+)
However, for the second row it is capturing the exclamation mark and hyphen as well. How can I uncapture those things?