Using Python and regex, would you please help converting to i.e., space needs to be inserted when it is between two alphabets and either one of the characters on either side is an alphabet. Space need NOT be inserted if both sides of the period is a digit. Please help. Thanks in advance. Answer You can use negative lookahead assertion