A "match" class

C

Chris Mantoulidis

I was wondering if there was something like a "match" class in the
std. By match class I mean something like a search tool. That is I
will tell it in what text to search and WHAT to search for. The format
of what I want it to find would be something like:
"abc?efg*mnopq?st*z"

I hope you understand what I mean. :)

So it a class (or anyway SOMETHING) in the std header files that is
something like that or do I have to implement it myself?
 
T

Travis McIntosh

Chris said:
I was wondering if there was something like a "match" class in the
std. By match class I mean something like a search tool. That is I
will tell it in what text to search and WHAT to search for. The format
of what I want it to find would be something like:
"abc?efg*mnopq?st*z"

I hope you understand what I mean. :)

So it a class (or anyway SOMETHING) in the std header files that is
something like that or do I have to implement it myself?

look at the regular expression parsing from the boost library
http://www.boost.org/libs/regex
 
A

Alf P. Steinbach

* (e-mail address removed) (Chris Mantoulidis) schriebt:
I was wondering if there was something like a "match" class in the std.
No.


By match class I mean something like a search tool. That is I
will tell it in what text to search and WHAT to search for. The format
of what I want it to find would be something like:
"abc?efg*mnopq?st*z"

I hope you understand what I mean. :)

E.g. <url: http://www.boost.org/libs/regex/doc/index.html>.


So it a class (or anyway SOMETHING) in the std header files that is
something like that or do I have to implement it myself?

No, and no.
 
C

Chris Mantoulidis

I was wondering if there was something like a "match" class in the
std. By match class I mean something like a search tool. That is I
will tell it in what text to search and WHAT to search for. The format
of what I want it to find would be something like:
"abc?efg*mnopq?st*z"

I hope you understand what I mean. :)

So it a class (or anyway SOMETHING) in the std header files that is
something like that or do I have to implement it myself?

I know I could have written a class of my own in the meantime but stl
is almost always better than code someone writes. So plz can someone
reply? :)

Thanks in advance,
cmad
 
J

Jeff Schwab

Chris said:
I was wondering if there was something like a "match" class in the
std. By match class I mean something like a search tool. That is I
will tell it in what text to search and WHAT to search for. The format
of what I want it to find would be something like:
"abc?efg*mnopq?st*z"

I hope you understand what I mean. :)

So it a class (or anyway SOMETHING) in the std header files that is
something like that or do I have to implement it myself?

Check out boost::regex. Not in the std header files, but may be one day. :)
 
C

Chris Mantoulidis

I was wondering if there was something like a "match" class in the
std. By match class I mean something like a search tool. That is I
will tell it in what text to search and WHAT to search for. The format
of what I want it to find would be something like:
"abc?efg*mnopq?st*z"

I hope you understand what I mean. :)

So it a class (or anyway SOMETHING) in the std header files that is
something like that or do I have to implement it myself?

thanks guys!
 
C

Chris Mantoulidis

thanks guys!

I'm d/ling it through CVS now; but is that the only way to get it? I
didn't find a link in the boost regex site for a d/l... Is the CVS d/l
fully functional? Here's what I'm d/ling atm: boost_1_31_0.tar.bz2. I
hope this is what I'm looking for...

Thanks for your help guys so far :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,163
Messages
2,570,897
Members
47,435
Latest member
PhilipBelm

Latest Threads

Top