Print regex without for each activity

image

hello guys
do you know how to print the output of this regex without using for each?
so the output should be
image
thank you

On what string did you apply the regex?

It’s from pdf