boost-regex Questions

2

Solved

I am currently trying to compile a Contraction Hierachies implementation by KIT which requires Boost::Regex. The supplied Makefile already makes sure (and I have also double-checked this manually) ...
Traction asked 11/7, 2013 at 8:20

4

Solved

I tried to use Boost library but I failed, see my code: #include "listy.h" #include <boost/regex.hpp> using namespace boost; ListyCheck::ListyCheck() { } ListyCheck::~ListyCheck() { } b...
Burkitt asked 11/6, 2010 at 8:40

3

Solved

I am trying to take a string in C++ and find all IP addresses contained inside, and put them into a new vector string. I've read a lot of documentation on regex, but I just can't seem to understa...
Hematology asked 27/4, 2011 at 12:55

1

Solved

I'm trying to match some chunks if interesting data within a data stream. There should be a leading < then four alphanumeric characters, two characters of checksum (or ?? if no shecksum was sp...
Gesticulate asked 8/11, 2016 at 9:52

2

Solved

How do you use boost::regex_search with the ignore case flags or constants in C++? Please post an easy example. Thanks!
Artless asked 6/6, 2011 at 6:1

3

Solved

Could someone explain the differences between the two? Which would be better to learn right now? How would knowledge transfer from one to the other and vice-versa?
Michail asked 28/9, 2011 at 21:13

1

Solved

I am using C++ 11's <regex> support, and would like to check whether the beginning of a string matches a regular expression. [I can switch to Boost if that helps, but my impression is that th...
Galsworthy asked 8/8, 2012 at 18:1

1

Solved

I have these variables: boost::regex re //regular expression to use std::string stringToChange //replace this string std::string newValue //new value that is going to replace the stringToChange de...
Sporades asked 4/7, 2012 at 2:2

4

Solved

i'm trying to use boost regex within my program the problem is i get this error... the only installation step i did was to add: "C:\Program Files\boost\boost_1_42" into the Additional Include Direc...
Callison asked 16/2, 2010 at 16:0

1

Solved

I was trying to install Boost on a linux machine(CentOs, Linux version 2.6.9-67.ELsmp). I followed with the instruction on Boost Getting Started webpage. Downloaded and extracted the files, then I ...
Gilkey asked 23/4, 2012 at 9:15

4

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 tri...
Ehman asked 28/6, 2010 at 15:18

2

Solved

I'm trying to convert the following bash code into C++ using boost::iostreams: #!/usr/bin/bash ( gzip -cd file1.ext.gz cat file2.ext ) | grep '^regex' # or sed 's/search/replace/' I can open a...
Arv asked 21/2, 2011 at 22:34

2

Solved

I want to write a function in C++ to replace C's sscanf that assigns the matches to iterator. Basically, I want something like: string s = "0.5 6 hello"; std::vector<boost::any> any_vector;...
Showman asked 17/2, 2011 at 22:4

1

Solved

I am having problems with the format function in boost::regex_replace. I can call the one parameter version of it, but not the two parameter: e = "(^|>)([^<>]+)"; h_str = regex_replace(h_...
Autonomic asked 30/1, 2011 at 3:25

3

Solved

I'm using <regex> from Visal Studio 2010. I understand that when I create regex object then it's compiled. There is no compile method like in other languages and libraries but I thinks that's...
Tinney asked 21/12, 2010 at 13:35

2

Solved

#include <boost/regex.hpp> #include <string> #include <iostream> using namespace boost; static const regex regexp( "std::vector<" "(std::map<" "(std::pair<((\\w+)(::)...
Bride asked 21/12, 2010 at 2:8

2

Solved

i am trying to compile my program which uses regex on linux. I built the boost library in the libs/regex/build by typing make -fgcc.mak which created a directory gcc which contains the following ...
Cero asked 17/2, 2009 at 23:21

1

Solved

Is there a DOTALL matching flag for boost::regex? The documentation shows: static const match_flag_type match_not_dot_newline; static const match_flag_type match_not_dot_null; but no mention of ...
Catchup asked 11/11, 2009 at 2:50
1

© 2022 - 2024 — McMap. All rights reserved.