Stepan Kasal <[EMAIL PROTECTED]> writes: > I wanted to implement this: > > 1) the string can contain only characters -.a-zA-Z_0-9/ > 2) the first character is not /
In that case your regular expression is right. You also implemented a 3rd restriction "the string must be nonempty" but that's also a POSIX requirement so it's fine to check this too. > (Yes, I think path of ../../build-aux can make sense, if the configure > belongs to a subpackage.) In that case, why not allow absolute file names too? Sorry, I'm lost. Why is it important to restrict the file name choices here?
