Giter Club home page Giter Club logo

pbniregex's Introduction

Hi there ๐Ÿ‘‹

I used to maintain a personal page but it is a bit outdated now...

pbniregex's People

Contributors

sebkirche avatar xlat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pbniregex's Issues

add named group feature

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") )

upgrade the underlying PCRE

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.

study info never freed

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.