regexp time >= 21:00
regexp time >= 21:00
rf1234
Posts: 2,958Questions: 87Answers: 418
I have this button:
{ text: lang === "de" ? "Nur Zeit ab 21:45" : "Only Time from 21:45",
action: function ( e, dt, node, config ) {
dt.columns("#lateWorkers").search( '^.+$', true, false ).draw();
}
},
The regexp written by Kevin @kthorngren searches for "not empty" but I would like to replace it by ">= 21:45" for example (time will be a parameter with time running from 00:00 to 23:59).
I am not smart enough to make that regexp. Could anyone help, please?
This question has an accepted answers - jump to answer
Answers
I think you will need to create a range search plugin like this example. I don't know of a way to use regular expressions for time ranges.
Kevin
Ok, no regex then
This is my solution: