use explicit regex in example.

Reflect change as per https://github.com/webpack/core/commit/61bfcce0629ee6ef0b8a67d3306cd2fc1dcdb0a7