pastebin

Paste Search Dynamic
Recent pastes
ID card number
  1. #include <stdio.h>
  2. #include<stdlib.h>
  3. %}
  4.  
  5.  
  6. %%
  7. [0-9]{5}[- ][0-9]{7}[- ][0-9]{1} {printf("n Its a valid ID-card numbern");}
  8. (.)* {printf("n Its a invalid ID-card numbern");}
  9.  
  10. %%
  11. int yywrap(){}
  12. int main(int argc , char *argv[]){
  13. printf("nEnter your ID-card number : ");
  14. yylex();
  15. printf("n");
  16. return 0;
  17. }
Parsed in 0.001 seconds