I used to maintain a personal page but it is a bit outdated now...
sebkirche / pbniregex Goto Github PK
View Code? Open in Web Editor NEWPowerbuilder PCRE regex extension
License: Other
Powerbuilder PCRE regex extension
License: Other
I used to maintain a personal page but it is a bit outdated now...
By adding a method string group( long matchId, string groupName ) so we could simplify interpretation of complex regex:
lrx_extract.initialize( "(?x) (?| \bfile:? (.+) \s at \s line \s (\d+) | \s at \s line \s (\d+) | \bfile:? (.+) )", false, false )
Here we have to check if the group #1
is like a number.
Then, this could be rewrited as :
lrx_extract.initialize( "(?x) \bfile:? (?<file>.+) \s at \s line \s (?<line>\d+) | \s at \s line \s (?<line>\d+) | \bfile:? (?<file>.+)" , false, false )
So after we can just do:
ls_file = lrx_extract.group( 1, "file" )
ll_line = long( lrx_extract.group( 1, "line") )
Using replace()
with an empty string as search argument runs into an infinite loop.
We could prevent that situation returning the input string unmodified as result instead of stalling.
PbniRegex is built upon PCRE version 5.8 (compiled on 2008-09-05).
At the time of this writing, PCRE is now in version 8.33.
The lib used by pbniregex [c|s]hould be upgraded.
Starting at PB11, the documentation states that when using IPB_Session::GetString()
a corresponding ReleaseString()
must be invoked to free the memory allocated.
The code misses the required ReleaseString()
calls and should suffer memory leaks :^S
The pcre_study()
function that makes some analysis on a given regexp may return a pointer to a block of data that is reused by pcre_exec()
(or it may return NULL
).
When such a block is returned, it must be freed by pcre_free()
(or pcre_jit_free()
since version 8.20) but pbniregex never frees it.
version pb 2017 r3 ?
I have just fixed in bedb95e a problem with a POST LocalFree()
in n_tooltip
in the 11.5 library, the fix must be ported to the other versions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.