This question has an explanation of the problem and a pattern that is tried by the OP. https://stackoverflow.com/questions/55952798/need-help-to-construct-regex To me this question is not unclear at all, it is explained with the wrong result and has an expected result. A moderator single handedly closed and removed the question, which I think is a wrong approach. Can this question be reopened?