Done till converting regex from infix to postfix form