More work on regular patterns.