That code is spot on thanks!
In reply to Re^2: Pattern Matching by webchalkboard in thread Pattern Matching by webchalkboard