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