[wpkg-users] Regular Expression Syntax Error

Rainer Meier r.meier at wpkg.org
Sat Jun 21 23:56:51 CEST 2014


Hi,

On 21.06.2014 23:50, ph.rossignol at bluewin.ch wrote:
> <install os="6\.\d{1}\.\d{4}\" cmd='%COMSPEC% /C del /Q
> "%Public%\Desktop\Mozilla Firefox.lnk"'><exit code="any" /></install> <!--
> Microsoft Windows 7 8 8.1 -->
>
> At the execution I get in the WPKG log (debug option) the message : Regular
> Expression Syntax Error. I can't find the problem as the syntax of the os
> expression semms correct. Can you help me ?

The reason might be the closing "\" which escapes the quotation and it likely 
not supposed to be part of the regular expression.

Try this
os="6\.\d{1}\.\d{4}"

br,
Rainer




More information about the wpkg-users mailing list