Find text and Replace for filename

I want to find REGEX and replace it with filename variable how can I do this in phpstorm?
I want to find (\d+) regex in whole project and replace it with num_$1_FILENAME I want to replace that FILENAME with the filename without the file extension

for example if we have new_file.php

echo "it is demo 10";

after replace I want have

echo "it is demo num_10_new_file";

Please sign in to leave a comment.