How to find strings that match specific pattern
Hi guys.
I'm working on strings in C and I'm struggling with it about one day so I guess and believe we can solve it altogether cooperatively;
what I'm trying to do is, assuming I have a specific pattern of string like "CBOARD$ ((string that's written here)) PROGRAMMING$ (string that's written here))", and what I want to do is to print the string where the ((string that's written here)) present, meaning by an example if I have ""CBOARD$ BLA BLA BLA PROGRAMMING$ bla bla bla" I want to print the string which is between CBOARD$ AND PROGRAMMING$, also to print the string that's presented after PROGRAMMING$, meaning to print on the screen:
BLA BLA BLA
bla bla bla
the pattern CBOARD$ <string1> PROGRAMMING$ <string2> is constant, and always need to print the <string1> and the <string2>.
frankly I have made a code but it's crashed while compiling, any help please?! I appreciate your cooperation.
thanks in advance.