Skip to content

Instantly share code, notes, and snippets.

(?xi)
\b
( # Capture 1: entire matched URL
(?:
[a-z][\w-]+: # URL protocol and colon
(?:
/{1,3} # 1-3 slashes
| # or
[a-z0-9%] # Single letter or digit or '%'
# (Trying not to match e.g. "URI::Escape")
<?php
/**
*
* Runs after _forward
*
* @return void
*
*/
protected function _postRun()
{
var some = function (callback) {
callback();
foo();
};
<?php
// Adding some stupid comments
$system = dirname(dirname(__FILE__));
ini_set('include_path', "$system/include");
require_once 'Solar.php';
Solar::start("$system/config/Solar.config.php");
$campaigns = Solar::factory('Victoria_Model_Campaigns');
$struct = $campaigns->fetch(1);