I know this is old but any news about this?
I'm trying to build a snippet which transforms a testcase file path to PHP namespace but only if the path has a /Tests component. So the regex first matches the filepath without the filename, but then I need to change all / to .
So I need to chain the substitution so that I can match&substitute all I got in backreference \1
What I have now is (I'm omitting the full body of the snippet and instead just place the namespace statement):
What I need would be:
Is it possible to do this (maybe the syntax could be different)