Text format is
<h:mm> <keyword>
<keyword> <h:m>
Examples:
1:00 XXX XXX
1.00 XXX XXX
100 XXX XXX
13:00 XXX XXX
1300 XXX XXX
XXX XXX 1:00
XXX XXX 100
XXX means any asci strings with any length including space
And the hour can be 1 or 2 length and the minutes has 2 length always.
The colon and comma can be used to split hour and minute and the hour and minute can be merged without any split symbol.
The goal is to get time string and keyword
This is the example of regex which I want.
/^(?<key1>.+)(?<time1>\d{1:2}[:.]?\d{2})$|^(?<time2>\d{1:2}[:.]?\d{2})(?<key2>.+)$/g
Thanks
Hello, i believe i can help you. I've done many regex projects without a single problem. And i believe i have a solution for you. If you are interested in working with me, please message me and i will try to help immediately.
Thanks, Milan