@Fox Thank you very much, Your Regex worked smoothly..:)
RegEX
-
I tried do create a regex for my following needs.
String is hour and minutes like:
1:01
23:59I tried ^([01]?\d|2[0-3]):([0-5]?\d)$ and [0-9]+:[0-9]+ but both are not working every time i need it.
Anyone have an idea, why this not works?
Greetings from Germany
-
@radb0310 Thanks, but i want to extract the 2 values and put them in 2 variables, so i need to use "First match" from BAS or?
Oh and i need it without hardcoded numbers.So nearly all before the : in 1 ariable and all after that in another variable.
Greetings from Germany
-
@levant_de said in RegEX:
1:01
[[STRING]] = "1:01"
[[VALUE]] = [[STRING]].split(":")
[[HOURS]] = VAR_VALUE[0]
[[MINUTE]] = VAR_VALUE[1] -
@clarabellerising nice, works like expected. <3
Greetings from Germany
