Page MenuHomePhabricator

temp_uc.php

Authored By
bzimport
Nov 22 2014, 12:04 AM
Size
357 B
Referenced Files
None
Subscribers
None

temp_uc.php

<?php
date_default_timezone_set('Europe/Berlin');
error_reporting(E_ALL);
$text = "text „http://example.com“ Text\n";
echo $text;
$uc = "A-Za-z0-9_\\/:.,~%\\-+&;#?!=()@\\xA0-\\xFF";
$protos = "http|https|ftp|mailto|news|gopher";
$pat = "/(^|[^\\[])({$protos}):[{$uc}]+([^{$uc}]|$)/";
$text = preg_replace( $pat, "\\1 \\3", $text );
echo $text;
?>

File Metadata

Mime Type
text/x-php
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8135
Default Alt Text
temp_uc.php (357 B)

Event Timeline