Re: [pcre-dev] Capturing groups

Kezdőlap
Üzenet törlése
Szerző: Thorsten Schöning
Dátum:  
Címzett: PCRE Mailing Lists
Tárgy: Re: [pcre-dev] Capturing groups
Guten Tag norulez@???,
am Dienstag, 21. Februar 2012 um 14:36 schrieben Sie:

> I want the functionality which is implemented for preg_match and/or preg_match_all from PHP.


The you should describe how those functions work and don't expect us
to guess which version etc. of those functions you mean.

> The other thing is that I need to specify the size of the list, is
> this correct? Because I mean something like


> std::list<std::string> captures;


> pcre_exec(&captures);


pcre has a C interface where your C++-Code is not available, but there
already is a C++-wrapper called pcrecpp which you may use. It supports
up to 16 capture groups with different datatypes returnable.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:Thorsten.Schoening@???
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/


Telefon.............030-2 1001-310
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hanover HRB 207 694 - Geschäftsführer: Andreas Muchow