[EMAIL PROTECTED] wrote:

You
can escape characters using [..]. To match a * anywhere in a string,
for example:

x GLOB '*[*]*'

The [..] pattern must contain at least one internal character. So
to match a "]" you can use the pattern

x GLOB '*[]]*'

So to match the OP's original string he would need to use '*1[[][]]1.txt' as his pattern?

With each of the square brackets to be matched escaped by a pair of enclosing square brackets.

I haven't had much luck finding a detailed spec for the GLOB pattern language. Most descriptions only show the basics. Does anyone know of a good reference?

Dennis Cote

-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to