custom regex in route requirements custom regex in route requirements symfony symfony

custom regex in route requirements


You need to add quotes around your pattern.

name: "[a-zA-Z0-9]{2,15}"