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.
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