perl -e '/(START context |* End context *)/' Quantifier follows nothing in regex; marked by <-- HERE in m/(START context |* <-- HERE End context *)/ at -e line 1.