I have the following problem. Often data exists in a form:
IF X = (A OR B OR C OR D)
or
IF X = (Aa OR Bb OR Cc)
where 'OR' are separators and letters are values - but, number of elements in list is undefined. I want to change it to:
IF X = 'A' OR X = 'B' OR X = 'C' OR 'D'
and, accordingly:
IF X = 'Aa OR X = 'Bb' OR X = 'Cc'
I have completely no idea how to solve it by regular expression or even how to ask properly about the solution.
How to do it?