下記のワイルドカードを利用すればよい。
ワイルドカード
? →任意の1文字
* →任意の文字(文字数制限なし)
例えば、xx12xxxxといった数字があり、左から3文字目と4文字目が12のものを絞り込むときは、「??12*」をソートの欄に入れればよい。
最初はmid関数を使って、隣の列に3文字目と4文字目を抜き出して、if関数でフラグを立てようとか考えてしまった。ワイルドカードの方が簡単。
? →任意の1文字
* →任意の文字(文字数制限なし)
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?example\.sakura\.ne\.jp$ [NC]
RewriteRule .* http://www.example.jp%{REQUEST_URI} [R=301,L]
<!-- コメントをどうぞ <?php if ( comments_open() ) : ?>
<div class="comments-link">
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
</div><!-- .comments-link -->
<!--コメント<?php endif; // comments_open() ?> コメントをどうぞ-->
これを、style.cssとして保存する。
/*
Theme Name: Twenty Twelve Child
Theme URI:
Description: Twenty Twelve Child Theme
Author:
Author URI:
Template: twentytwelve
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twenty-twelve-child
*/
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( ’twenty-twelve’, get_template_directory_uri() . '/style.css' );
}
?>
http://wpdocs.sourceforge.jp/子テーマ2015/02/23追記