Added regex check for assignment and equality operators