I have a line in a coded text from which the formtat is
DEF/AAA/AAA/AAA/AAA/AAA/AAA/AAA/AAA/AAA
where A equals a letter
but the fields after the DEF/ are optional. Which means the line could look like
DEF/AAA or
DEF/AAA/AAA etc etc
I am trying to a find regular expression that will find all those lines that begin with DEF/ and in the rest (up to 9 fields) there is one of the following codes (BCD or DFG).
Is it possible to make this is one regular expression or I should use "OR" and do sth like
I found the problem. The problem was that the application I use, uses behind a strange TCL regexp tester which didn't accept the but only ( ). I don't know the reason but this was the problem.