Expand my Community achievements bar.

Join us at Adobe Summit 2024 for the Coffee Break Q&A Live series, a unique opportunity to network with and learn from expert users, the Adobe product team, and Adobe partners in a small group, 30 minute AMA conversations.
SOLVED

Regex Classification Rule Builder - Time Stamp

Avatar

Level 2

Recently created a new eVar containing the timestamp utilizing the 'getTimeParting' (version 6.3) from Adobe Common Analytics Plugins. The results shows up as such: 

 

year=2022 | month=March | date=20 | day=Sunday | time=6:48 AM 

 

Currently having difficulty creating within the classification rule builder utilizing regular expressions to retrieve each value from the key-value pairs from the time stamp for year, month, date, day and time. Anyone have recommendations on how to approach this particular regular expression? Thanks!   

1 Accepted Solution

Avatar

Correct answer by
Level 2

Nevermind, will be closing this thread. Since the answer has been found! 

 

year=(\d+) *\| *month=(\w+) *\| *date=(\d+) *\| *day=(\w+) *\| *time=(.*)

 

View solution in original post

3 Replies

Avatar

Community Advisor

What are some of the rules and logic you have tried that failed? Can you post some examples here?

Avatar

Level 2

Was provided this suggestion: (\w+) *= *([^|]*)

It seems to regenerate the first key-value pair, how do I expand this to provide additional match groups for month, date, day and time? 

 

WesPhg_1-1648058118115.png

 

Avatar

Correct answer by
Level 2

Nevermind, will be closing this thread. Since the answer has been found! 

 

year=(\d+) *\| *month=(\w+) *\| *date=(\d+) *\| *day=(\w+) *\| *time=(.*)