Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 1
Level 1
EMeyer79
Level 1

Likes

0 likes

Total Posts

20 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
EMeyer79
Level 1

Likes

0 likes

Total Posts

20 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
EMeyer79
Level 1

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
Validate 1
Level 1
EMeyer79
Level 1

Likes

0 likes

Total Posts

20 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
EMeyer79
Level 1

Likes

0 likes

Total Posts

20 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
EMeyer79
Level 1

11-03-2020

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

Answers (1)

Answers (1)

Avatar

Avatar
Give Back 50
Level 6
pabloc82923542
Level 6

Likes

76 likes

Total Posts

358 posts

Correct Reply

81 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Level 6
pabloc82923542
Level 6

Likes

76 likes

Total Posts

358 posts

Correct Reply

81 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
pabloc82923542
Level 6

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.