I am trying to use BOOST.Regex POSIX Compatible C API's. I am using regcomp()
to match an expression like a\+
, which should match aa
and aaa
, while using cflags=REG_BASIC
. I have regcomp( reg, "a\\+", REG_BASIC)
but it is not working.
I found a link stating that \+
is not part of the POSIX standard. But I found in Boost POSIX Basic regular expression documentation an Emacs variation that supports \+
syntax.
How can I use \+
in POSIX Basic Regular Expressions? Or in other words, enable Emacs variation.
References: