I am trying to parse an input string using a regular expression. I am getting a problem when trying to capture a repeating group. I always seem to be matching last instance of the group. I have tried using Reluctant (non greedy) quantifiers, but I seems to be missing something. Can someone help?
Regular expression tried:
(OS)\\s((\\w{...
So I inherited code written in C++ that uses the Boost library. I could compile (using Code Blocks) and run the code on Linux Ubuntu but when I ported it over to the mac and installed the boost library, I can compile it using code blocks (and specifying the location of the regex libraries) but it won't run.
It just gives me the error:
...
Hi All
I having an issue in using Boost regex with a MFC CString.
The regex is very simple: it must check if the string ends with the name of a dll I am looking for.
In the code below the CString Path DOES contain the dll I am looking for, but I don't know why the regex is failing. Uisng ReleaseBuffer increases the buffer size so the L...
hello
#include <iostream>
#include <fstream>
#include <string>
#include<string>
#include<boost/algorithm/string.hpp>
#include<boost/regex.hpp>
#include <boost/algorithm/string/trim.hpp>
using namespace std;
using namespace boost;
int main() {
string robotsfile="User-Agent: *"
"Disallow: /";
regex exrp( "^Disallow...
I've gotten the exact same code compiled on Ubuntu and am now trying to get my program working on a MacOS 10.6.4. I installed boost 1.4.4 as root using
./bootstrap.sh and then
./bjam
I also performed the following:
./bjam install variant=debug define=_GLIBCXX_DEBUG --with-regex
I compiled the program using Codeblocks (without any erro...
Hello,
I'm a newbie about boost. I compiled boost libraries with success (under mac os x). Now, I tried to build the very first example mentioned at boost website (including boost/ as include directory and boost/stage/lib as library directory, with netbeans) and got the following error
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAK...
I'm trying to port a code from PHP to C++.
I was using the PHP build-in regular expression to extract some value and it works well.
From some reason the same reg expression does not work when using the boot regexp library.
Could anyone spot what I'm doing wrong:
reg exp:
regex exp("__EVENTVALIDATION" value="(.*)");
and the string is:...
Please could you explain why given the following boost::regex pattern:
boost::regex re("/\\S+\\w");
/index.html is a match and /~index.html is not?
RegexBuddy in Perl mode finds a match in both cases.
Could you suggest a pattern that would work? Thanks!!
P.S. The \\w at the end is needed in order to ignore the punctuation on the en...