I have a string expressions like this:
(code name credits) or ((code name credits) and (code name credits))
I want to recognize all (code name credits) combinations in the string, and replace them with a value.
Code is a combination of letters and numbers.
Name is a combination of words, separated by a single space, words can have both letters and numbers.
Credit is a number.
Each component is separated by a tab.
An actual example of (code name credits) combination is the following:
IABIG-02 Computer Graphics 5
This is not related to the question, but this is what I want to achieve:
Input:
(IABIG-02 Computer Graphics 5) or ((AIBJH88 Computer Vision 5) and (AIKKH10 Computer Architecture 5))
Output:
T or (F and T)