- substr: documentation ( source)
- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
$subject = "Helló";
$pattern = '/(ló){2,3}/';
preg_match($pattern, substr($subject,3), $matches, PREG_OFFSET_CAPTURE);
var_dump($matches);