473,385 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

A "match" class

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?
Jul 22 '05 #1
7 1660
Chris Mantoulidis wrote:
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
Jul 22 '05 #2
* cm****@yahoo.com (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.

Jul 22 '05 #3
cm****@yahoo.com (Chris Mantoulidis) wrote in message news:<a8**************************@posting.google. com>...
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
Jul 22 '05 #4
Chris Mantoulidis wrote:
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. :)

Jul 22 '05 #5
cm****@yahoo.com (Chris Mantoulidis) wrote in message news:<a8**************************@posting.google. com>...
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!
Jul 22 '05 #6
cm****@yahoo.com (Chris Mantoulidis) wrote in message news:<a8**************************@posting.google. com>...
cm****@yahoo.com (Chris Mantoulidis) wrote in message news:<a8**************************@posting.google. com>...
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!


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 :)
Jul 22 '05 #7
cm****@yahoo.com (Chris Mantoulidis) wrote in message news:<a8**************************@posting.google. com>...
cm****@yahoo.com (Chris Mantoulidis) wrote in message news:<a8**************************@posting.google. com>...
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!


sorry I found a new link!
Jul 22 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: kmunderwood | last post by:
I am trying to combine "if match=" and "when test" I am a newbie, and have made both work separately, but I can not seem to combine them. This is my xml("index.xml")page(I can not change this,...
1
by: myth.drannon | last post by:
Hi , I'm trying to find a simple solution to this question.. ( not just making two match parts) I have <xsl:template match=" one | two " > and then I want to test what match I have and do...
32
by: Licheng Fang | last post by:
Basically, the problem is this: 'do' Python's NFA regexp engine trys only the first option, and happily rests on that. There's another example: 'oneself' The Python regular expression...
1
by: Pythor | last post by:
OK I'm trying to create a sql query on our as400. I have a main table like this: acct prf acct no. sku AAA 123 ABCD AAA 123 XYZ I have...
3
by: Good Man | last post by:
Hi there Ideally, I'd like to create one javascript function and pass the file extension i'm looking for to see if its there: <input type="file" onchange="checkFile('pdf',this)" /> and then...
1
by: patelxxx | last post by:
Hi Guy's, I'm getting the error: "Username or password did not match" BEFORE I even enter a username and password, can someone help? 1) The site I'm accessing is:...
7
by: phub11 | last post by:
Hi all, I am using "match" to see if elements in one array match elements in another array. My first array is "1.1,1.2,2.1" so I convert it to a string. Next, I have a loop that cycles through...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.