1--TEST--
2Twig supports the "matches" operator
3--TEMPLATE--
4{{ 'foo' matches '/o/' ? 'OK' : 'KO' }}
5{{ 'foo' matches '/^fo/' ? 'OK' : 'KO' }}
6{{ 'foo' matches '/O/i' ? 'OK' : 'KO' }}
7--DATA--
8return []
9--EXPECT--
10OK
11OK
12OK
13