Hi,
The same regular expression, when executed in QM and PowerShell respectively, produces different results
Also, in QM, How to express \r?\n
Macro rxr
Result:
_s.form("ConnectFailReason: ", rest.ConnectFailReason
); out _s
_s.form("This should be 18: ", json.IntOf("nestedArray[j][k]")
); out _s
Debug.Print rest.LastErrorText
Powershell Code:
Result:
_s.form("ConnectFailReason: ", rest.ConnectFailReason); out _s
_s.form("This should be 18: ", json.IntOf("nestedArray[i][j][k]")); out _s
Debug.Print rest.LastErrorText[/i]
The same regular expression, when executed in QM and PowerShell respectively, produces different results
Also, in QM, How to express \r?\n
Macro rxr
_s=
;,Debug.Print "ConnectFailReason: " & rest.ConnectFailReason
;Debug.Print "This should be 18: " & json.IntOf("nestedArray[i][j][k]")
;,Debug.Print rest.LastErrorText
_s.replacerx("(?m)^(\s*)Debug.Print (.+) & (.+)$", "$1_s.form($2, $3); out _s")
out _s
Result:
_s.form("ConnectFailReason: ", rest.ConnectFailReason
); out _s
_s.form("This should be 18: ", json.IntOf("nestedArray[j][k]")
); out _s
Debug.Print rest.LastErrorText
Powershell Code:
Result:
_s.form("ConnectFailReason: ", rest.ConnectFailReason); out _s
_s.form("This should be 18: ", json.IntOf("nestedArray[i][j][k]")); out _s
Debug.Print rest.LastErrorText[/i]