regexec and wild cards help

This is a discussion on regexec and wild cards help within the C Programming forums, part of the General Programming Boards category; I want to find if a string matches this pattern: tbzfile_????.tbz where ? is a digit....

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    13

    Question regexec and wild cards help

    I want to find if a string matches this pattern:

    tbzfile_????.tbz

    where ? is a digit.

  2. #2
    Registered User
    Join Date
    May 2005
    Posts
    13
    something like
    pattern = "/^tbzfile_\d{4}.tbz$/";

    Code:
    if(pattern, strToBeSearched){
       //found
    }else
       //not found
    }
    Last edited by Harman; 05-11-2005 at 12:44 PM.

  3. #3
    SleepWalker tjohnsson's Avatar
    Join Date
    Apr 2004
    Posts
    70
    founds from posix..
    take a look to the http://www.opengroup.org/onlinepubs/...s/regex.h.html
    -- Add Your Signature Here --

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21