I am trying to jerryrig a regex that will only NOT match the pattern .i l
or .I L
if the user puts something for example .i ;
or any other number or character including just .i
without a space and an L, it has to match provided that the string starts with .i
or .I
prefix.
I've got this so far but i cannot wrap my head around how to make this work :
^(?i)(.i l)*$
Thanks a lot in advance : )