Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Regular Expression for fnmatch function

Reply
Thread Tools

Regular Expression for fnmatch function

 
 
Graeme Downes
Guest
Posts: n/a
 
      01-14-2005
Hi

I'm trying to create a regular expression for C using the fnmatch
function from the fnmatch.h library.

I dont know if you can help, but i need something as follows:

[[#:]#:]#

where # represents any number with any number of digits

it should be able to accept:

"10:30"
"10"
"10:30:20"
""

thanks for any help
 
Reply With Quote
 
 
 
 
Keith Thompson
Guest
Posts: n/a
 
      01-14-2005
(Graeme Downes) writes:
> I'm trying to create a regular expression for C using the fnmatch
> function from the fnmatch.h library.


The fnmatch.h library is not part of standard C, nor is any regular
expression library, so we can't help you here. You might try
comp.unix.programmer.

<OT>
fnmatch doesn't do regular expressions; it probably can't do what you
want. The folks in comp.unix.programmer can probably help you find
something that can.
</OT>

--
Keith Thompson (The_Other_Keith) kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
More Efficient fnmatch.fnmatch for multiple patterns? abcd Python 4 01-08-2007 07:19 PM
attribute error using fnmatch s99999999s2003@yahoo.com Python 2 06-05-2006 07:12 AM
fnmatch on filename (without specific extension) kepioo Python 2 04-09-2006 01:00 PM
fnmatch.h help kitty C++ 2 03-29-2006 04:28 AM
Dynamically changing the regular expression of Regular Expression validator VSK ASP .Net 2 08-24-2003 02:47 PM



Advertisments