c | compare string format

Viewed 670

I want to find out if there is any simple option to a string is equal to a format string. for example I want this format .mat[something][something] to be equal to using strcmp to .mat[r1][r2] or .mat[4][5]

Is there any option to use regular expressions of a sort? or something like strcmp(.mat[%s][%s], .mat[r3][r5])?

BTW I'm using ansi-c Thanks

2 Answers
Related