All pastes #389752 Raw Edit

Something

public text v1 · immutable
·published 2007-03-10 22:37 UTC
rendered paste body
<?
		$thisrecord =
          	"
          		<h3 id=\"%%recordid%%\">%%headline%%</h3>
          		<ifpicture>
				<img src=\"/images/upload/%%recordid%%.jpg\" alt=\"%%picturecaption%%\" />
				<span class=\"caption\">%%picturecaption%%</span>
				</ifpicture>
				<p>%%textbody%%</p>
          	";
			
			echo htmlspecialchars($thisrecord);
			
			$resultcount = preg_match_all("(<ifpicture>.*?</ifpicture>)",$thisrecord,$results);

			echo "<p>Found $resultcount match(es).</p>";

?>