Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#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 mLipok)

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 Changed 4 years ago by mLipok

  • Description modified (diff)

comment:2 Changed 4 years ago by TicketCleanup

  • Version 3.3.15.3 deleted

Automatic ticket cleanup.

comment:3 Changed 4 years ago by Jpm

I will look at 8.44
for PCRE2 noway Jon answer it was a too big change (snif snif)

comment:4 Changed 4 years ago by Jpm

I check 8.44 same result ...

comment:5 follow-up: Changed 4 years ago by Jpm

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 in reply to: ↑ 5 Changed 4 years ago by mLipok

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.

Last edited 4 years ago by mLipok (previous) (diff)

comment:7 Changed 4 years ago by anonymous

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 Changed 4 years ago by Jpm

  • Resolution set to No Bug
  • Status changed from new to 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

Last edited 4 years ago by Jpm (previous) (diff)

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.