Regular Expression for fnmatch function

G

Graeme Downes

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
 
K

Keith Thompson

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>
 

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

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top