Questions tagged [boost-xpressive]
36 questions
0
votes
0 answers
search and replace using regex_replace
I have a string to be searched
QString sObjectName = "looolok"
The regex_search for ".?o" results in 3 matched texts which I push to a vector matchedText
"lo" "oo" "lo"
Now I my replace text is "o"
So I would expect the str to be changed to…

sameer karjatkar
- 2,017
- 4
- 23
- 43
0
votes
1 answer
Boost Xpressive - cannot use after(stuff)
I am in the process of converting a regex library (thousands of perl regex's) and have come across a major problem.
This is the expression that I have to translate into static xpressive :
(?

Simon
- 2,208
- 4
- 32
- 47
0
votes
1 answer
Boost Xpressive - field ‘m_rx’ has incomplete type
I am having trouble compiling a class header which contains a member field of type sregex.
The class is defined as :
#include
namespace Bob
{
class RegexReplace
{
public :
boost::xpressive::sregex m_rx;
…

Simon
- 2,208
- 4
- 32
- 47
0
votes
2 answers
Using Boost::Xpressive to match a single character
I have a string that can be "/" "+" "." or a descriptive name
I'm trying to figure out how to use regex to check if the string matches any of the 3 special characters above (/ + or .)
After doing a bit of reading i decided boost::xpressive was the…

hipyhop
- 179
- 4
- 12
0
votes
1 answer
Case-insensitive match with Boost Xpressive
I just can't get the regex_match function to find case-insensitive matches. Even though boost::xpressive::regex_constants::icase is defined and I use a cast (so there is no ambiguity to the icase method of Xpressive), I get a compilation error…

muffel
- 7,004
- 8
- 57
- 98
-1
votes
4 answers
Nesting OR in Regular Expressions
How do I match an expression where I need to do an or of another set?
i.e., how do I match something of the format
[
[
[ a | b ] |
[ x | y ]
]
]
where a, b, x and y are strings.
I want to match the phrases like
a
b
x
y
a x
a y
b x
b…

Bhargava Srinarasi
- 192
- 1
- 15