Home » U++ Library support » U++ Core » RegExp this'n that (RegExp update)
RegExp this'n that [message #47047] |
Sun, 20 November 2016 16:30 |
luoganda
Messages: 195 Registered: November 2016
|
Experienced Member |
|
|
-updated to pcre v8.39, dated 2016...
-more reg submatches, before it was only around cca 10
Issues in v8.10 is that is has problems matching some stuff, issues with many |, or more than 10 submatches.
Original pcre source is taken from pcre website.
This was tested with upp9251 - since this version works on windows xp - latest does not.
I think it should be 'revisited' by someone and integrated in upp.
There is maybe one 'stuff' to revisit/check/fix, because it's defined in two places:
-max_pcre_offsets - look source and note-simmx.txt
~~~~~~~~~~~
This did not match in original upp pcre-8.10, in 8.39 it does(modified to match more than 10) - as it should:
RegExp re(
"(stuff)\\s+(\\d+)?\\s*(stuffx)?\\s*([a-zA-Z_][a-zA-Z0-9_-]*=(?:\".*\"|\'.*\'|[[:graph:]]*) )*\\s*(\".*?\");"
"|(stuff2)\\s+(\".*?\");"
"|(stuff3)\\s+(\".*?\".*?);"
"|(.*?);"
);
if(re.Match("tid nanu;"))PromptOK("matches");
|
|
|
|
|
RegExp this'n that
By: luoganda on Sun, 20 November 2016 16:30
|
|
|
Re: RegExp this'n that
By: luoganda on Wed, 23 November 2016 10:37
|
|
|
Re: RegExp this'n that
By: mirek on Sun, 27 November 2016 20:09
|
|
|
Re: RegExp this'n that
By: luoganda on Sun, 04 December 2016 14:45
|
|
|
Re: RegExp this'n that
By: luoganda on Sun, 25 December 2016 18:02
|
|
|
Re: RegExp this'n that
By: mirek on Wed, 28 December 2016 17:05
|
|
|
Re: RegExp this'n that
By: luoganda on Fri, 06 January 2017 22:25
|
|
|
Re: RegExp this'n that: unneded creation of lib
By: luoganda on Thu, 27 April 2017 11:32
|
|
|
Re: RegExp this'n that: patch for 9251(cbInter),11040
|
|
|
Re: RegExp this'n that: patch for 9251(cbInter),11040
|
|
|
Re: RegExp this'n that
|
Goto Forum:
Current Time: Fri Apr 26 16:14:09 CEST 2024
Total time taken to generate the page: 0.02970 seconds
|