Skip to main content
Level 3
March 11, 2020
Solved

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

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
EMeyer79Accepted solution
Level 3
March 11, 2020

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

4 replies

Pablo_Childe
Community Advisor
Community Advisor
March 11, 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.

Translate
EMeyer79Author
Level 3
March 11, 2020
Thanks! I actually got it to work. I used \:(.+?)(\/|$) and set the output as $1
Translate
EMeyer79Author
Level 3
March 11, 2020
Thanks! I actually got it to work. I used \:(.+?)(\/|$) and set the output as $1
Translate
EMeyer79AuthorAccepted solution
Level 3
March 11, 2020

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

Translate