Expand my Community achievements bar.

Get ready! An upgraded Experience League Community experience is coming in January.
SOLVED

Processing Rules - Regular Expressions

Avatar

Level 4

I'm not seeing a way to do this, but just wanted to check first. And I'm just trying to work around a backlog of IT resources...

 

So is it possible to do regular expressions within a processing rule?

 

As an example, I basically would want to do something like this one where I could pull out the third value in a string separated by some common character(s). In this case, the characters are -_- and there are two of them so it would need to know its after the second occurrence.

 

JayGr_0-1761768770976.png

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor and Adobe Champion

No, you can't do regex with processing rules. With processing rules you can only concatenate values, not parse them out. If you're looking to use regex to pull out individual values, you can do that using classifications. Right now you will need to use the legacy classification rule builder to do so until they add rule building to the new classification sets. 

I'm not an expert in regex, but you should be able to write an expression that has a multi-character delimiter, and then in the classification rule builder indicate which value (1st, 2nd, 3rd, etc) that you want to return. 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor and Adobe Champion

No, you can't do regex with processing rules. With processing rules you can only concatenate values, not parse them out. If you're looking to use regex to pull out individual values, you can do that using classifications. Right now you will need to use the legacy classification rule builder to do so until they add rule building to the new classification sets. 

I'm not an expert in regex, but you should be able to write an expression that has a multi-character delimiter, and then in the classification rule builder indicate which value (1st, 2nd, 3rd, etc) that you want to return.