Thread: regexec and wild cards help

  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