Recursive on Rename Job not working
Posted: Fri Feb 25, 2022 3:59 pm
Hi all
I'm currently testing the following flow: Regex for Action 4: [\.']
Regex for Action 5: [^a-zA-Z0-9]|__+
What I'm trying to do: Replace the umlauts with their ASCII-friendly counterparts, replace dots and apostrophes with nothing and then replace everything that's not a letter or a digit with an underscore. Following this procedure, there are sometimes multiple underscores in a row which I want to reduce with the second part of the regex in Action 5. But for some reason, recursive doesn't work for that last action, Switch only replaces the first match. When I set 'Repeat' to 'Consecutive', it works but the multiple underscores stay. I know I could add another Rename Job element after this but that's not really as elegant . Any ideas what I'm missing?
I'm currently testing the following flow: Regex for Action 4: [\.']
Regex for Action 5: [^a-zA-Z0-9]|__+
What I'm trying to do: Replace the umlauts with their ASCII-friendly counterparts, replace dots and apostrophes with nothing and then replace everything that's not a letter or a digit with an underscore. Following this procedure, there are sometimes multiple underscores in a row which I want to reduce with the second part of the regex in Action 5. But for some reason, recursive doesn't work for that last action, Switch only replaces the first match. When I set 'Repeat' to 'Consecutive', it works but the multiple underscores stay. I know I could add another Rename Job element after this but that's not really as elegant . Any ideas what I'm missing?