<?php
$txt='"<optgroup label=" Gare du Nord - Gare de l\'Est - 10e"></optgroup><option data-max-adults="3" value="TIMHOTELGEst" selected>━ Timhotel Paris Gare de l\'Est / 3*"';
$re1='.*?'; # Non-greedy match on filler
$re2='(?:[a-z][a-z]+)';
if ($c=preg_match_all ("/".$re1.$re2."/is", $txt, $matches))
{
$word1=$matches[1][0];
print "($word1) \n";
}
Warning: Undefined array key 1 in /in/X8cr4 on line 10
Warning: Trying to access array offset on null in /in/X8cr4 on line 10
()
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Warning: Undefined array key 1 in /in/X8cr4 on line 10
Warning: Trying to access array offset on null in /in/X8cr4 on line 10
()