|
From: | Virus_vir |
Subject: | [Gnu-regexp-discuss] urgent regarding gnu.regexp |
Date: | Wed, 30 Jul 2003 20:11:45 +0550 |
i am porting a c++ application to java
the cpp application was using the c version of gnu.regexp as a dll
in java i am using the gnu.regexp package
i tried to compile the regular expressions with the same flags as in the c++ program they are ( the value used to set syntax in c library is "0x3b2dc"that corresponds to
RE_CHAR_CLASSES
RE_CONTEXT_INDEP_ANCHORS
RE_CONTEXT_INDEP_OPS
RE_DOT_NEWLINE
RE_DOT_NOT_NULL
RE_INTERVALS
RE_NO_BK_BRACES
RE_NO_BK_PARENS
RE_NO_BK_VBAR
RE_NO_EMPTY_RANGES
RE_UNMATCHED_RIGHT_PAREN_ORD
i have two sets of regular _expression_ as shown below
1. (\\<(ab )?abc[:]? [(]?abcdegth abcdef ([:]|([(][A-Z0-9 /-]{10,50} [)])) aabbccd )
2. (\\<SIL)|(\\(REF[:] AIB[-]SIL)
if i compile them using the same flags i get a EXPETED END OF SUB _expression_ ERROR
but it works fine in cpp
the regular _expression_ 2 works only if RE_NO_BK_PARENS is set and the requla!
r _expression_ one compiles successfully only if RE_NO_BK_PARENS is not set can any body give me a alternate solution ( i.e a possible solution where i can compile both )
i need to use them both with ssame compilation flags
sent by sak
please reply to address@hidden
[Prev in Thread] | Current Thread | [Next in Thread] |