integrating magenot to work with Varnish

integrating magenot to work with Varnish

Cancelled

Job Description

I have moved my magento store to new server (centos) everything is set to work, magento, apache, mysql, varnish is installed but not running yet since I am getting errors like:
Message from VCC-compiler:
Expected an action, 'if', '{' or '}'
('input' Line 18 Pos 7)
purge_hash( ".*" );
------##########---------

Running VCC-compiler failed, exit 1

VCL compilation failed

I used this example of setting for my varnish installation:
http://www.kalenyuk.com.ua/magento-performance-optimization-with-varnish-cache-47.html

I need somebody who knows how to fix this and knows how to setup magento with varnish. You must be expert in this field.
Thank you