I am trying to advance my skill level in RegEx. I started playing using RegEx with some random numbers. Just seeing what I can come up with to challenge myself.
I want to extract a set of numbers from the result, but have been unsuccessful. Here is the macro as it is now.
Code: Select all
LabelToVar>NumberTest,hnTest
// List of numbers separated by the bar(the 'or' in RegEx).
let>NumOrList=22|28|20|19|30|33|37
let>Pattern1=((%NumOrList%):(\d\d?);(\d\d?:\d\d?;))|((\d\d?):(\1);(\d\d?:\d\d?;))
RegEx>%Pattern1%,hnTest,0,match,nomb,0
mdl>%nomb% (%match_1%) (%match_2%) (%match_3%)
/*
NumberTest:
13:52;25:38;11:50;23:36;9:48;21:34;7:46;19:32;5:44;17:30;3:42;15:28;0:0;26:39;12:51;24:37;10:49;22:35;8:47;20:33;6:45;18:31;4:43;16:29;2:41;0:0;
*/
// Result
//3 (19:32;5:44;) (22:35;8:47;) (20:33;6:45;)
// ========^^^^^=======^^^^^======^^^^^
Of course, I am aware that I could extract the numbers through other means, but that isn't what this is about.
To clarify. I want to extract these sets of numbers.
5:44;8:47;6:45;
Ok, so.....what do you RegEx experts think? What is the solution here?
Thanks for helping,
PepsiHog