preg_match for <?php, <?, and/or ?>
Posted
by SoLoGHoST
on Stack Overflow
See other posts from Stack Overflow
or by SoLoGHoST
Published on 2010-05-30T15:35:21Z
Indexed on
2010/05/30
15:42 UTC
Read the original article
Hit count: 334
Hello guys, I'm not very familiar with regEx's and I'm trying to find a preg_match regex for searching for any of the following strings within a file and if found it will halt it. I already have the fopen
and fgets
setup I just need to use a regex inside of a preg_match for the following php tags:
<?php
<?
?>
Thanks for your help with this :)
© Stack Overflow or respective owner