- substr: documentation ( source)
- strpos: documentation ( source)
- strrpos: documentation ( source)
<?php
$val = 'i2-Connections_3.2.1.4-REG-VA-AU-LM-I.dat';
$name = substr($val,(strrpos($val,"_3")+5));
$name = substr($name,(strrpos($name,"dat/")+4));
echo $name . "\n";
if(strpos($name,'AU') !== false){
if(strpos($name,'VA') !== false){
echo "si";
}
}