RewriteEngine on RewriteRule ^/(.*)$ http://example.com/$1
RewriteEngine on RewriteRule ^([0-9A-Z]{10})$ link.cgi?asin=$1
use URI::Escape; ... ### google code search # usage: {{gcs('"next if"')}} sub gcs { my ($s) = @_; my $q = URI::Escape::uri_escape($s); return qq(<a href="http://www.google.com/codesearch?q=$q">$s</a>); }
my $q = $s; $q =~ s/([^0-9a-z_ ])/'%'.unpack('H2', $1)/gei; $q =~ s/\s/+/g;
<style> .box {margin:10px; padding:10px; border:solid 1px black;} .delete {background-color:black; color:white; cursor:pointer;} </style> <div class="box"> 一個前の中身、中身、中身 </div> <div class="box"> <span class="delete" onclick="this.parentNode.parentNode.removeChild(this.parentNode)" >×</span> 中身、中身、中身 </div> <div class="box"> 一個後の中身、中身、中身 </div>