Hi Friends ,

Can u any one give me coding for do pattern matching in C . Let me give example for pattern matching .
1 . 0000RO (followed by 7 digits ) ,000R (followed by 8 digits) ,R (followed by 11)
2. first three letters alpha , remaining all are digits . length is 15 .

The program should be in generic manner. it should not hard coded.

Pls kindly provider this code for me...if some one knows how to do this .