Hi there!
Since v3.60 msdeploy does not replace and/or capture groups correctly.
Given a source file "myfile.php":
$myvar = array( 'prop' => 'oldValue', ... );
Using the msdeploy command line:
set value=newValue
msdeploy.exe ^
-verb:sync ^
-source:package="..." ^
-dest:auto ^
-setParam:kind=TextFile,scope=\\mydir\\myfile\.php$,match="('prop'\W+=>\W+)'\S+'",value="$1'%value%'" ^
...
Expected result (working with msdeploy up to v3.50):
$myvar = array('prop' => 'newValue',
...
);
Result with msdeploy v3.60:
$myvar = array($1'newValue',
...
);
Instead of inserting the captured group's content
'prop' =>
it inserts $1
literally.
Has the regex syntax changed in v3.60? What can I do to mitigate the problem? Using v3.50 is not really an option since I'd like to use v3.60's new http proxy capability.
Thanks and best regards,
Thomas