D
David Joseph Bonnici
I have this sort of information in a text file
19:00 STEPPING THE WORLD: Greek Islands - Corfu.
and I am trying to build a regex that will put
19 into backreference 1
00 into backreference 2
STEPPING THE WORLD into backreference 3
Greek Islands - Corfu into backreference 4
I have built this ^(\d{2})(?::|\.)(\d{2})\s(.*)(?::\s)(.*).$ and it works fine
but I want that if I have something like this
19:00 STEPPING THE WORLD
I would still have backreference 1,2, and 3 filled.
Any help
19:00 STEPPING THE WORLD: Greek Islands - Corfu.
and I am trying to build a regex that will put
19 into backreference 1
00 into backreference 2
STEPPING THE WORLD into backreference 3
Greek Islands - Corfu into backreference 4
I have built this ^(\d{2})(?::|\.)(\d{2})\s(.*)(?::\s)(.*).$ and it works fine
but I want that if I have something like this
19:00 STEPPING THE WORLD
I would still have backreference 1,2, and 3 filled.
Any help