Please see: this
HTH
In reply to Re: pattern matching with specified length by planetscape in thread pattern matching with specified length by tariqahsan