Boost logo

Boost Users :

Subject: [Boost-users] [regex] problem w/ regex::extended
From: U.Mutlu (for-gmane_at_[hidden])
Date: 2015-02-12 22:09:28


Hi,
the following regex expression works in perl-mode,
but does not work in extented-mode.
What's the reason?
I think I haven't used any perl-specific construct, or did I? Where?

...
#define NUM "[+-]?(\\d+\\.?\\d*|\\.\\d+)([eE][+-]?\\d+)?"
#define WORD "[\\w\\-\\.~/]+"
#define EQU "\\s*\\=\\s*"

const string sUserRE_VarAndVal = WORD EQU NUM;

#if 0
#define REGEX_ENGINE boost::regex::extended
#else
#define REGEX_ENGINE boost::regex::perl
#endif

regex reNum(sUserRE_VarAndVal, REGEX_ENGINE);
...


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net