I want to find if a string matches this pattern:
tbzfile_????.tbz
where ? is a digit.
I want to find if a string matches this pattern:
tbzfile_????.tbz
where ? is a digit.
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.
founds from posix..
take a look to the http://www.opengroup.org/onlinepubs/...s/regex.h.html
-- Add Your Signature Here --