Classification Rule Builder- Using Regex to Remove Report Suite Prefix from Page Name

Avatar

Avatar

EMeyer79

Avatar

EMeyer79

EMeyer79

11-03-2020

Hi All, 

 

I'm trying to use the classification rule builder and regular expression to remove our report suite prefix from our page names. See example below:

 

Current: uofctest:full-time:programs

 

Would like it to be: full-time:programs

 

Any thoughts on how to accomplish this? Thanks for the help!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

EMeyer79

Avatar

EMeyer79

EMeyer79

11-03-2020

\:(.+?)(\/|$) is the regex and I set the output to $1

Answers (1)

Answers (1)

Avatar

Avatar

pabloc82923542

Avatar

pabloc82923542

pabloc82923542

11-03-2020

If s.prop or evar are capturing the pagename this way I think you are stuck. Its like in a saint classification. A key variable cannot be renamed/modified.

 

You need to adjust your s.code or perhaps create a new prop/evar where you use a processing rule to remove the prefix from the first referenced prop/evar.