Easy to analyze if you are really curious about data
root@MHKANG:~# echo -e "a.txt\nb.php"|grep -oP "[^.]+$" txt php
D:\>echo a.txt & echo.b.php a.txt b.php D:\>echo a.txt & echo.b.php | findstr php a.txt b.php