Could not compile pattern
Error returned is 'Missing ]'
