I have 2 strings :
World - Friday 22 April.pdf
World of 22 April 2022 Pdf
How can I say they are the same ? (by the words : World and by the date)
I tried using
if(strpos("World - Friday 22 April.pdf", "World of 22 April 2022 Pdf") !== false){
echo "Found !";
}
I tried to make a regex which will get everything after the numeric. So I could compare 22 April and extract the first word to compare.
I’m very beginner in regex.
I can use something like d.(get everything after the match)