Home » U++ Library support » U++ Core » RegExp this'n that (RegExp update)
Re: RegExp this'n that [message #50079 is a reply to message #47047] |
Sun, 15 July 2018 23:09 |
luoganda
Messages: 197 Registered: November 2016
|
Experienced Member |
|
|
This does not match, but it's taken directly from pcre 8.xx manual.
It matches correctly on many pcreCompatibleOnlinePages,eg this one regexr, if testing - don't forget to check pcre there in right-upper corner and to use single '\' if copying down pattern.
Also, subfunc of Match func in this case produces an error(pcre_exec returns -5 which is PCRE_ERROR_UNKNOWN_OPCODE), but it's not cought by upp, that is - error funcs doesn't know about it, a silent error.
This should match a balanced '(...abc(...)abc...)' pattern.
String s="(abc)";
RegExp re("\\(([^()]++|(?R))*\\)");
if(re.Match(s))PromptOK("\1Matches");
if(re.IsError())PromptOK(String("\1RegExpErr: ")<<re.GetError());
Anyone has some idea why this is so?
[Updated on: Sun, 15 July 2018 23:20] Report message to a moderator
|
|
|
|
|
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: Tue May 07 10:43:56 CEST 2024
Total time taken to generate the page: 0.01808 seconds
|