Nilorea Library
C utilities for networking, threading, graphics
|
PCRE helpers for regex matching. More...
#include <pcre.h>
Go to the source code of this file.
Data Structures | |
struct | N_PCRE |
N_PCRE structure. More... | |
Functions | |
int | npcre_clean_match (N_PCRE *pcre) |
clean the match list of the last capture, if any More... | |
int | npcre_delete (N_PCRE **pcre) |
Free a N_PCRE pointer. More... | |
int | npcre_match (char *str, N_PCRE *pcre) |
Return TRUE if str matches regexp, and make captures up to max_cap. More... | |
N_PCRE * | npcre_new (char *str, int max_cap, int flags) |
From pcre doc, the flag bits are: PCRE_ANCHORED Force pattern anchoring PCRE_AUTO_CALLOUT Compile automatic callouts PCRE_BSR_ANYCRLF \R matches only CR, LF, or CRLF PCRE_BSR_UNICODE \R matches all Unicode line endings PCRE_CASELESS Do caseless matching PCRE_DOLLAR_ENDONLY $ not to match newline at end PCRE_DOTALL . More... | |