用于C ???的PHP Regex模式 - ?? - ? - *

I need to match a string to this pattern C???-??-?-* (example: CRPN-NN-N-036+)

So far I found this regex pattern:

/^(C-)*[a-zA-Z]{3}-[a-zA-Z]{2}-[a-zA-Z]-

But this doesn't work.

^C[a-zA-Z]{3}-[a-zA-Z]{2}-[a-zA-Z]-.*

Here's an example

The dot (.) matches a single character, without caring what that character is. The only exception are line break characters.

So, we can use ^C.{3}-.{2}-.-.* to make the regex more general. This pattern even can match C???-??-?-*