grep part of file name

Hi,

I have a problem to use grep in my script .

If I want to grep the file for example : PTWO9089.txt
The code below works .
grep ^PONE

But, I dont know on how to grep the file like this 9066PTWO.txt
I'll try to use this code :
grep PTWO^ ,but it doesn't work.

For your info, the number will always change. Hope you guys can help me.
Thanks You.

grep ".*PTWO"

to be more specific

grep -E ".*(PTWO)\.(txt)$"

"^" is used to search in the beginning. therefore nothing after "^" will not work.
"$" is used to search at the end.

 
ls -l  | grep PTWO
ls | grep "*PTWO*.txt"

cheers,
Devaraj Takhellambam

no need to use ls and grep together for this case

ls *PWTO*.txt