Fatal error: Uncaught Error: [] operator not supported for strings in /in/Oti29:12
Stack trace:
#0 {main}
thrown in /in/Oti29 on line 12
Process exited with code 255.
Array
(
[0] => Thi's is
[1] => is an
[2] => an examp-le
[3] => examp-le tex't
[4] => tex't using
[5] => using my
[6] => my Regex
[7] => Regex expression
)