#3797 closed Feature Request (No Bug)
PCRE update to recent PCRE-8.44 or even to PCRE2-10.36
| Reported by: | mLipok | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | None | |
| Keywords: | Cc: |
Description (last modified by )
In fact there was recently closed ticket:
https://www.autoitscript.com/trac/autoit/ticket/3656
In fact @Melba23 said:
PCRE updated for 3.3.16.0
But even using recent Alpha version (candidate for Beta which include PCRE-8.41) .... AutoIt still have problem with this simple example:
#include <Array.au3> #include <StringConstants.au3> _Example(0, '(?i)[\W]((\w)[\s\xA0]*?\d+[a-z]{0,3}\/\d\d)') Func _Example($sTitle, $sPattern) Local $sText = _ 'Dąbrowskiego43/45' & @CRLF & _ 'Dąbrowskiego43/45' & @CRLF & _ 'Kordeckiego1/11' & @CRLF & _ 'Kordeckiego 1/11' & @CRLF & _ 'm2/11' & @CRLF & _ 'm2/12' & @CRLF & _ 'p 3/12' & @CRLF & _ '' ConsoleWrite('>>>>>>>>>>> $sTitle = ' & $sTitle & @CRLF) Local $aTest = StringRegExp($sText, $sPattern, $STR_REGEXPARRAYGLOBALFULLMATCH) ConsoleWrite('! ---> @error=' & @error & ' @extended=' & @extended & @CRLF) If UBound($aTest) Then For $iOuter_id = 0 To UBound($aTest) - 1 ConsoleWrite('MATCH ' & $iOuter_id + 1 & @CRLF) ConsoleWrite(_ArrayToString($aTest[$iOuter_id]) & @CRLF) Next EndIf ConsoleWrite('>>>>>>>>>>> END ' & @CRLF) ConsoleWrite(@CRLF) ConsoleWrite(@CRLF) EndFunc ;==>_Example
Proper behavior was saved be me in this link:
https://regex101.com/r/C7h5ML/3
So please consider update to PCRE-8.44 or even switch to PCRE2-10.36
https://ftp.pcre.org/pub/pcre/
Edit: Of course, to the latest version available at the time of update, regardless of the branch.
Attachments (0)
Change History (8)
comment:1 by , 5 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 5 years ago
| Version: | 3.3.15.3 |
|---|
comment:3 by , 5 years ago
I will look at 8.44
for PCRE2 noway Jon answer it was a too big change (snif snif)
follow-up: 6 comment:5 by , 5 years ago
in fact pcretest.exe 8.44 give the following result
so I don't know which is right
PCRE version 8.44 2020-02-12
/(?i)[\W]((\w)[\s\xA0]*?\d+[a-z]{0,3}\/\d\d)/g
Dąbrowskiego43/45
No match
Dąbrowskiego43/45
No match
Kordeckiego1/11
No match
Kordeckiego 1/11
No match
m2/11
No match
m2/12
No match
p 3/12
No match
comment:6 by , 5 years ago
Replying to Jpm:
in fact pcretest.exe 8.44 give the following result
Please post the same kind of result but generated by pcretest.exe 8.41
and regardles of the fact that @Jon said "no no no" ... please also show the same kind of result but generated by pcretest.exe 10.36
Then it will be possible to compare results from all this 3 versions of pcretest.exe (8.41 ... 8.44 ... 10.36) .
As for now the way how pcretest.exe show results is is not very readable (for people like me accustomed to a different way of giving the result of a RegEx query).
And for this reason comparative data are needed.
comment:7 by , 5 years ago
not sue to get an executable version for pcre2 10.36
but for 8.41
PCRE version 8.41 2017-07-05
/(?i)[\W]((\w)[\s\xA0]*?\d+[a-z]{0,3}\/\d\d)/g
Dąbrowskiego43/45
No match
Dąbrowskiego43/45
No match
Kordeckiego1/11
No match
Kordeckiego 1/11
No match
m2/11
No match
m2/12
No match
p 3/12
No match
comment:8 by , 5 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
I cn not get a pcretest-10.36.exe
as the 8.44 does change the result from 8.41, I close the ticket

Automatic ticket cleanup.