Custom Query
Results (181 - 183 of 3866)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#2663 | Completed | StringRegExpReplace backreference not working | BrewManNH | BrewManNH |
Description |
The only backreferences working in RegExp functions are \1\2\3... and $1$2$3..., the \g and \k backreferences mentioned in the help file don't work. If you use \g1 for example you'll get "g1" in the string instead of the backreferenced match. This works: Local $sOutput = StringRegExpReplace("Slide1.jpg", "([a-zA-Z]+)(\d{1})(\..+)", "${1}0$2$3") ;-- add a 0 before single digit MsgBox(4096, "Test", $sOutput) This does not: Local $sOutput = StringRegExpReplace("Slide1.jpg", "([a-zA-Z]+)(\d{1})(\..+)", "\g{1}0\g2\g3") ;-- add a 0 before single digit MsgBox(4096, "Test", $sOutput) The first MsgBox gives you the output of "Slide01.jpg", the second message box gives you "g{1}0g2g3". If you tried using a named group using (?<one>) and back referenced it using \k<one> you'll get "k<one>01.jpg" Local $sOutput = StringRegExpReplace("Slide1.jpg", "([a-zA-Z]+)(?<one>\d{1})(\..+)", "\k<one>0\2\3") ;-- add a 0 before single digit MsgBox(4096, "Test", $sOutput) I tested this in 3.3.11.3, 3.3.10.2 and 3.3.8.1, doesn't work in any of them. |
|||
#2994 | Wont Fix | Can't run _Excel_RangeFind example in 3.3.13.19 | BrewManNH | |
Description |
When you try to run any of the example scripts, from the help file for _Excel_RangeFind, in 3.3.13.19 it errors out every time.
This example runs fine in 3.3.12.0 |
|||
#3577 | No Bug | _FileWriteToLine strips @crlf off last line for some files | BrianM | |
Description |
compared the .log to the .log_after files and notice the fail case has the last @crlf removed. #include <File.au3> Local $sSourceLine = "227487744 148299776 11.1.6749897" Local $sTargetFilename = "fail.log" Local $sFilenameTmp = $sTargetFilename & "_after" FileCopy($sTargetFilename,$sFilenameTmp,$FC_OVERWRITE) _FileWriteToLine($sFilenameTmp,2,$sSourceLine) Local $sTargetFilename = "pass.log" Local $sFilenameTmp = $sTargetFilename & "_after" FileCopy($sTargetFilename,$sFilenameTmp,$FC_OVERWRITE) _FileWriteToLine($sFilenameTmp,2,$sSourceLine) |