Title |
Test
Find
Get all code inside of php tag in page
|
Expression |
(\<\?php\s+.*?((\?\>)|$)) |
Description |
Get code in between php tag <?php and ?> or until end of string if end of tag not found. Singleline option must be enabled! |
Matches |
<?php this is code in php ?> |
Non-Matches |
text outside php tag |
Author |
Rating:
David Havl
|
Source |
|
Your Rating |
|
Title: Almost
Name: Vlad Shamgin
Date: 8/12/2011 7:02:20 PM
Comment:
The above expression makes no-match for <?phpinfo();?>
So I would say instead:
(\<\?php.*?((\?\>)|$))