Hello fellow monks,

Im in need of your wisdom. I am currently involved in a project which needs to have a Regex Filter.

As I have joined this project quite late it is realised in C++ . I assume its a matter of speed and interfaces to other software. Anyway, as I dont have the expertise to make decissions there, I take it as it is.
I only have to use this thing.

The developers used as an regex engine Boost. As I was testing this thing I found some limitations:

  • Lookaheads
  • controlling greedy quantifier
  • ... and probably more
  • My Problem is, if it is reasonable to convice my boss to implement a full Perl compatible Regex library?

    Perhaps there is a possibility to simulate the effect of Lookaheads, because I should have good arguments to use PCRE despite of Boost.

    What arguments could I use to prefer a Perl regex?
    I havent found alot of uses for lookaheads yet, but I am afraid that in 2 months I am sitting here with Boost and cant use a Regex which would have been easy with Perl.

    Our developer told me that he already compared pcre to Boost, and boost succeeded because of its speed.

    Hope you can help me

    Schuk


    In reply to Regex libraries by Schuk

    Title:
    Use:  <p> text here (a paragraph) </p>
    and:  <code> code here </code>
    to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.