You are here

Problems when reading time using pattern

3 posts / 0 new
Last post
martin85
Offline
Joined: 1 week
Last seen: 1 week
Problems when reading time using pattern
Quote:

index_start.scrub {multi(debug,type=regex,pattern="HHmmss")||"program_stime":"(\d{6})"||}
index_stop.scrub {multi(type=regex,pattern="HHmmss")||"program_etime":"(\d{6})"||}

In the above code if the time below 24 hours the pattern works properly, but when it is above 24 hours up then an error occurs.

What about the solution?

Attachments: 
Goran
Offline
Joined: 1 year
Last seen: 52 min

HH cannot be >24 use calculate to get time

why you using {multi(type=regex??? it is regex code
Element.scrub {regex(arguments)||bs(\d{4})be||}

mat8861
Offline
WG++ Team memberDonator
Joined: 3 years
Last seen: 58 min

Or you can replace index_start.modify{replace|24:00|00:00} and stop of course

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl