removing old todo comment
handling case where input prarm contains an arrow in the regex