Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » RegExp this'n that (RegExp update)
RegExp this'n that [message #47047] Sun, 20 November 2016 16:30 Go to previous message
luoganda is currently offline  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"); 
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Incorrect SHA1 checksum for files 4GB+
Next Topic: ONE and assignement
Goto Forum:
  


Current Time: Fri Apr 26 16:14:09 CEST 2024

Total time taken to generate the page: 0.02970 seconds