I am having a problem with eregi match with the following bit of code, by rights it should work and I guess i must be missing something here. Any help would be welcomed. $cpfile = '<!-- basic shop coupon goes here (max width 600px)-->text<!-- End Body Table -->'; $string = '<!-- basic shop coupon goes here (max width 600px)-->(.*)<!-- End Body Table -->'; $items = eregi( $string, $cpfile, $cparray ); PHP: Thanks
i found the problem it is with () use \(\) ex: $string = '<!-- basic shop coupon goes here \(max width 600px\)-->(.*)<!-- End Body Table -->';