RE | Description |
^([^-]+) | match any non-dash character one or more times, and remember that (parens - [R1]) |
" - " | match a literal space dash space (quotes used here to see the spaces) |
(.+?) | match one or more characters (the .+), as few as possible (the ?), and remember that (parens - [R2]) |
\s+ | match one or more whitespace characters |
(\d+) | match one or more digits, and remember that (parens - [R3]) |
- | match a dash |
(\d+) | match one or more digits, and remember that (parens - [R4]) |
- | match a dash |
(\d+) | match one or more digits, and remember that (parens - [R5]) |
( \(Hour.+\))? | optionally, match the group of an opening parenthesis (quoted), followed by a space, followed by Hour, followed by one or more characters, followed by a closing parenthesis (quoted), and remember that (parens - [R6]) |