Regex in Classification Rule Builder | Community
Skip to main content
kishorepvsk
New Participant
March 11, 2020
Solved

Regex in Classification Rule Builder

  • March 11, 2020
  • 1 reply
  • 6040 views

Hi All,

 

I have an eVar that is currently capturing the below as a single string and I want to use a classification rule builder to split the strings between the pipe delimiter. I can have have few or many such strings with few or many pipe delimiters. Is it possible? Any help is much appreciated.

 

Analyst report|Blog Insight Voices|Brochure|Client story|Datasheet|Demo|eBook|Guide|Infographic|Insight feature|Insight report|Listicle|Podcast Technomics|Product overview|Solution brief|Video|Webinar|Whitepaper

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by PratheepArunRaj

Dear Panangipallik36,

Possible. We do have an eVar which will capture PageName|FieldName|ErrorName|CalculatorName but it can be PageName|FieldName or PageName|FieldName|ErrorName or PageName|FieldName|ErrorName|CalculatorName. So we have classified it based on its hierarchy: Below the screen grab and its results. Use it!

Rule & Order:

Results:

Thank You, Arun.

1 reply

PratheepArunRaj
PratheepArunRajAccepted solution
New Participant
March 12, 2020

Dear Panangipallik36,

Possible. We do have an eVar which will capture PageName|FieldName|ErrorName|CalculatorName but it can be PageName|FieldName or PageName|FieldName|ErrorName or PageName|FieldName|ErrorName|CalculatorName. So we have classified it based on its hierarchy: Below the screen grab and its results. Use it!

Rule & Order:

Results:

Thank You, Arun.

DhanA2
New Participant
July 5, 2023

Hey @pratheeparunraj ,

 

I have slightly different scenario:

bottom|bottom|bottom|bottom:299*299|299*299|299*299|299*299

Ends with| or : only applicable to the string prefix of :
Output Should be:
Location: bottom
Dimension:299*299

When i pull this report it should have 4 instances for each.

is this possible in classification rule builder?

 

 

PratheepArunRaj
New Participant
July 5, 2023

Dear @dhana2 ,

4 instances of each are not possible here if it is an eVar or a Prop. Classification breakdown these dimensions into individual sub-dimensions and cannot be combined based on the said fashion.

So, you first need to create a List Prop/List Variable with the delimiter '|' (pipe). Change the format to 'bottom:299*299|bottom:299*299|bottom:299*299|bottom:299*299' so that it will be broken down into 4 instances of 'bottom:299*299'. Then create a classification (Location & Dimension) for the List Prop/List Variable with the delimiter ':' so that the cumulative instances will be separated into individual sub-dimensions.

Thank You, Pratheep Arun Raj B (Arun) | NextRow DigitalTerryn Winter Analytics

PS: Check out my blog on List Vars and eVars with Classification for more details on the top.