gnu-regexp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Regexp] urgent regarding gnu.regexp portability please help me


From: Virus_vir
Subject: [Regexp] urgent regarding gnu.regexp portability please help me
Date: Wed, 30 Jul 2003 20:16:02 +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

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 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 reqular _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 )

 

please send the replies to address@hidden

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]