Regex to match C-1234567-01-A3

view full story

http://www.linuxquestions.org – At work, I run the product scriber. The scriber scribes the product number on the product. A typical product number is C-1234567-01-A3 (for example) The C and the hyphens never change. So basically all valid scribes are of the form C-*some seven numerical digits*-*some two numerical digits*-*some alphanumeric checksum* I'm not a programmer but I need to ask the programmer to check the scribe's form. I don't want to actually read the scribe and see if it's correct, I just need to verify the syntax, so that we can raise a flag if there's no wa (HowTos)