Multiple modification rules to map data to a descriptive string

Avatar
L
  • updated
  • Answered
Using Modification rules, I extracted the part of the path that I want, but it's a numeric code. Is there a nice way to map it to a descriptive string?

The first rule I have is:
(\w+).?$ ~=\1
This gives a possible 6 results that I want to now map to descriptive text. I tried doing:
2 = Description A
3 = Descripton B
etc.
but I don't get anything.
Avatar
Michael
Each rule is processed separately and it's not possible to use a chain of processing, so you need to create a separate rule for each value like the following rules:

2.?$ ~= Description A
3.?$ ~= Description B