Running scrip multible times


is it possible to run a scrip multiple times?

in my case I want to do something like this:
condition: is some regex-pattern inside of the subject

action: change something and remove this pattern from subject

if this pattern basically is in the subject more than once, the scrip should also run more than once. So the easiest way for me would be to re-run the scrip - if this pattern is still used in the subject, run the scrip again.

Best regards