How would write a regex expression that would accept Vanadium(ii) or Vanadium (ii) and ignore case?
Which works on the rubular tester, but not in canvas.
This regex should work for Vanadium(ii):
[ ]*[vV]anadium[ ]?\([iI][iI]\)
Allows for zero or more leading spaces, either lower or upper case "v", zero or one space between the "m" and the "(",
and the string must end with exactly two "i"s of any case between the parentheses. It should accept " vanadium (iI)" but not "Vanadium(I)".
- Dr. B