Cannot get RE2 to compile using Xcode 5 Programming Software Development by DuffManLight … const char * argv[]) { unsigned long ulValue = 0L; string sMultiple; string sMatch = "^(\\d+)([KkMm])"; string sData = "2M"; if… (RE2::FullMatch(sData, sMatch, &ulValue, &sMultiple)) cout << "Match!&… Boost regex_search Programming Software Development by missil9 … scrape( string base, string match ) { boost::regex re(match); boost::smatch matches; string::const_iterator start; start = base.begin(); while( boost::regex_search…;char>, std::allocator<char> > >, boost::smatch&, boost::regex&)' Any help would be greatly appreciated… Re: Boost regex_search Programming Software Development by vijayan121 …, const std::string& match ) { boost::regex re(match); boost::smatch matches; [COLOR="Green"]// while( boost::regex_search( start, base… Boost help + re-write of function. Programming Software Development by triumphost …::const_iterator start, end; start = Source.begin(); end = Source.end(); boost::smatch what; boost::match_flag_type flags = boost::match_default; //Match against the data… Can compile one boost example, but not another? Programming Software Development by miturian …: )*(.*)" ); while (std::cin) { std::getline(std::cin, line); boost::smatch matches; if (boost::regex_match(line, matches, pat)) std::cout <… problem with boost regex Programming Software Development by missil9 …;match, const int &set) { boost::regex re(match); boost::smatch matches; if(boost::regex_search(base, matches, re)) { std::string value… Re: problem with boost regex Programming Software Development by triumphost …::const_iterator start, end; start = Source.begin(); end = Source.end(); boost::smatch what; boost::match_flag_type flags = boost::match_default; while(boost::regex_search(start… Boost install problems. Linking error. Programming Software Development by TheBrick …: )*(.*)" ); while (std::cin) { std::getline(std::cin, line); boost::smatch matches; if (boost::regex_match(line, matches, pat)) std::cout <… Regular Expression Programming Software Development by Kristian_2 …... -------------------------------- I have problem with this code: cin >> str; smatch m; regex e("([[:w:]]+)@([[:w:]]+)\.com"); //<- Here… Gambas - reading an XML document Programming Software Development by it@61@sec … = n + 1 To xeElements.Max yData = New XMLNT With yData .sMatch = xeElements[i].GetChildrenByTagName("ns1:Name")[0].TextContent .sMatchTime… Re: JavaScript Sleep Programming Web Development by tigerofdoom …(newText)) !== null) { lastSleep = { start: sMatch.index, end: sMatch.index+sMatch[0].length, time: parseInt(sMatch[1]), otherParams: sMatch[2], followOn: newText.substring(sMatch.index+sMatch[0].length… Re: boost regex 1_34_1 problem Programming Software Development by meirab …: )*(.*)" ); while (std::cin) { std::getline(std::cin, line); boost::smatch matches; if (boost::regex_match(line, matches, pat)) std::cout <… Re: Program works but shorter code? Programming Software Development by galin …::string word; boost::regex e = "\b.+?[^'].+\b"; boost::smatch what; std::cout << "Enter a word"… Re: file handling! Programming Software Development by Lucaci Andrew … str("Carry umbrella and overcoat when it rains"); smatch match; while (regex_search(str, match, reg)) { for (auto i : match… Re: How to read a specific line from a text file in c++? Programming by toneewa …; qty) { ver[z] = status; std::string s; s = lines; std::smatch m; std::regex e(upc); { while (std::regex_search(s, m… Re: Cannot get RE2 to compile using Xcode 5 Programming Software Development by phorce Just a quick question.. Have you installed RE2 correctly? Also, are you linking it correctly when you compile this code? I.e. show what line you use when compiling `g++ blah` it sounds to me that you're not linking the library properly. Re: Cannot get RE2 to compile using Xcode 5 Programming Software Development by DuffManLight Thanks for looking into this. RE2 built correctly on my Mac. It could be a link problem but it is not easy to find. You can see the stdlib is set to 'libc++' in the Xcode command line. It is set to '-std=c++11' in the RE2 *Makefile* and those match. Xcode command line partial: *-stdlib=libc++ /Users/Christian/Downloads/re2/obj/so/libre2.so* Here … Re: Cannot get RE2 to compile using Xcode 5 Programming Software Development by phorce Oh. So you are actually compiling through XCode? Do you have the command line tools installed? If so, could you not just attempt to link using GCC (g++) so for example: [Check this link](http://stackoverflow.com/questions/7605028/using-googles-regex-library-re2-for-c-linking-errors) Might help you. Other than that, I'm stumped since I've never … Re: Boost regex_search Programming Software Development by missil9 Anybody please? Re: Boost regex_search Programming Software Development by missil9 Thank you very much for the reply. It compiles fine now. Re: Boost help + re-write of function. Programming Software Development by vijayan121 Use [B]boost::sregex_iterator[/B], perhaps? [url]http://www.boost.org/doc/libs/1_47_0/libs/regex/doc/html/boost_regex/ref/regex_iterator.html[/url] (There is an example at the end of the page.) Re: Boost help + re-write of function. Programming Software Development by triumphost Can you guys help me write a to match this? It should find 3 <td></td> 's in there.. Thing is they aren't separated by any spaces or anything.. so I'm not sure how to get them.. But I used <td(.*)</td>.. and it finds one match.. Any Ideas? [CODE] <td class="wsod_change" nowrap="nowrap"><span … Re: Boost help + re-write of function. Programming Software Development by vijayan121 > But I used [B]<td(.*)</td>[/B] .. and it finds one match.. Any Ideas? With the given text, it should find just one match. That repeat operator is greedy; it will consume as much input as possible. Use the non-greedy repeat operator instead: [B]<td.*?/td>[/B] Repeat: Use [B]boost::sregex_iterator[/B], perhaps? Like … Re: Can compile one boost example, but not another? Programming Software Development by jaskij Didn't you get a makefile with those examples? Try looking for one and compiling with it, that should work. Also, looking at the file header, it is an example from 2002, boost might have changed since that time. Re: Can compile one boost example, but not another? Programming Software Development by miturian Indeed you are right, the example is outdated. Making my way down to the bottom of the page, it turns out that google has pointed me to the documentation for a quite old version. Bad google. So, I guess it WAS an incompileable tutorial example. Finding a small example at the correct website (also among the google results, close by), it compiles … Re: problem with boost regex Programming Software Development by ravenous Do you have to escape the angled brackets? So use `\<` and `\>` instead of `<` and `>`, respectively. Re: problem with boost regex Programming Software Development by DeanMSands3 Are you trying to read XML? I wouldn't use RegEx for it. http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 I use TinyXML2. It's pretty simple once you get the hang of it. http://www.grinninglizard.com/tinyxml2/index.html Re: problem with boost regex Programming Software Development by missil9 hey all thanks for responding. sorry for the delay but i haven't been able to log in for the past week or two. ravenous - yes i tried to backslash the angle brackets to no avail deanmsands - thanks for the link. i will def take a look but i was hoping to leverage an API i already have to scrape data of web pages. this specific example happens … Re: Boost install problems. Linking error. Programming Software Development by TheBrick sorted. Command line arguments round the wrong way. I knew it was something stupid. Amzing hte diffrence a fresh head makes. g++ t1.o -o t2 -L/usr/local/lib -lboost_regex Question is though when did this not matter oon my laptop? Re: Gambas - reading an XML document Programming Software Development by rproffitt Is that valid XML? https://www.xmlvalidation.com/ didn't like it.