Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 36 results for
smatch
- Page 1
Cannot get RE2 to compile using Xcode 5
Programming
Software Development
10 Years Ago
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
13 Years Ago
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
13 Years Ago
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
12 Years Ago
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
12 Years Ago
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
11 Years Ago
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
11 Years Ago
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
11 Years Ago
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
10 Years Ago
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
5 Years Ago
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
11 Years Ago
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
16 Years Ago
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
15 Years Ago
by galin
…::string word; boost::regex e = "\b.+?[^'].+\b"; boost::
smatch
what; std::cout << "Enter a word"…
Re: file handling!
Programming
Software Development
9 Years Ago
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
2 Years Ago
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
10 Years Ago
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
10 Years Ago
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
10 Years Ago
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
13 Years Ago
by missil9
Anybody please?
Re: Boost regex_search
Programming
Software Development
13 Years Ago
by missil9
Thank you very much for the reply. It compiles fine now.
Re: Boost help + re-write of function.
Programming
Software Development
12 Years Ago
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
12 Years Ago
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
12 Years Ago
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
12 Years Ago
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
12 Years Ago
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
11 Years Ago
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
11 Years Ago
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
11 Years Ago
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
11 Years Ago
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
5 Years Ago
by rproffitt
Is that valid XML? https://www.xmlvalidation.com/ didn't like it.
1
2
Next
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC