Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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!

1 Accepted Solution

Avatar

Correct answer by
Level 2

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

View solution in original post

4 Replies

Avatar

Community Advisor

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.

Avatar

Level 2
Thanks! I actually got it to work. I used \:(.+?)(\/|$) and set the output as $1

Avatar

Level 2
Thanks! I actually got it to work. I used \:(.+?)(\/|$) and set the output as $1

Avatar

Correct answer by
Level 2

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