<?php preg_match('/\bПривіт\W+(?:\w+\W+){0,6}?світу\b/ui', 'Привіт, світу!', $matches).PHP_EOL; var_dump($matches);
You have javascript disabled. You will not be able to edit any code.