How to compare particular string, if it is equal put into a new file

Hi,
I have a file (sample.txt) this file contains below text.

./au
./11.5.0
./11.5.0/admin
./11.5.0/admin/driver
./po
./11.5.0
./11.5.0/admin
./11.5.0/admin/driver
./xxsbx/11.5.0/java/src
./xxsbx/11.5.0/lib
./xxsel
./xxsel/11.5.0
./xxsel/11.5.0/admin
./zfa
./zfa/11.5.0
./zfa/11.5.0/admin
./xxplb/11.5.0/workflow
./xxplb/11.5.0/workflow/bes
./[DEST_ENV=ERP11i_QTC_PRD.APP=XXAPPS.SERVER_BASE_PATH]
./[DEST_ENV=ERP11i_QTC_PRD.APP=XXAPPS.SERVER_BASE_PATH]/admin

here my requirement is in each line after 2 charcters (./)
if next 2 characters (means 3,4) is "xx" then i want to print that complete line into another file.
Thanks in Advance.

Regards
Gagan.

Like this?

$> grep ^..xx.* infile > newfile
$> cat newfile
./xxsbx/11.5.0/java/src
./xxsbx/11.5.0/lib
./xxsel
./xxsel/11.5.0
./xxsel/11.5.0/admin
./xxplb/11.5.0/workflow
./xxplb/11.5.0/workflow/bes

Thanks a lot Zaxxon