ex 1.

"1", "22"
"2234", "34"
"3234", "34"
"4234", "34"
"5234", "34"

("1234", "22"),
("2234", "34"),
("3234", "34"),
("4234", "34"),
("5234", "34"),

	Find what : "(\d+)", "(\d+)"

	Replace with : ("($1)","($2)"),


ex 2.

("1441","2"),
("1487","2"),

(1441,"2"),
(1487,"2"),

	Find what : \("(\d+)"

	Replace with : ($1


ex 3.

(1441,"2"),
(1487,"2"),

(1441,2),
(1487,2),

	Find what : "(\d+)"\)

	Replace with : $1)


ex 4.

$_POST[‘word’];
$_POST[‘word2’];

($_POST[‘word’])? h($_POST[‘word’]) : "";
($_POST[‘word2’])? h($_POST[‘word’]) : "";

	Find what : \$_POST\['(\w+)']

	Replace with : ($_POST['$1'])? h($_POST['$1']) : ""

 

ex 5.

<ul>
<li><a href="<?php echo HOME_URL; ?>/food/gelande">テキストテキスト</a></li>
<li><a href="<?php echo HOME_URL; ?>/food/snacks">テキストテキスト</a></li>
<li><a href="<?php echo HOME_URL; ?>/food/sweets">テキストテキスト</a></li>
<li><a href="<?php echo HOME_URL; ?>/food/ingredient_book">テキストテキスト</a></li>
</ul>


<ul>
<li><a href="<?php echo HOME_URL; ?>/food/gelande" <?php echo ($pname == "gelande")? 'class="c"' : ''; ?>>テキストテキスト</a></li>
<li><a href="<?php echo HOME_URL; ?>/food/snacks" <?php echo ($pname == "snacks")? 'class="c"' : ''; ?>>テキストテキスト</a></li>
<li><a href="<?php echo HOME_URL; ?>/food/sweets" <?php echo ($pname == "sweets")? 'class="c"' : ''; ?>>テキストテキスト</a></li>
<li><a href="<?php echo HOME_URL; ?>/food/ingredient_book" <?php echo ($pname == "ingredient_book")? 'class="c"' : ''; ?>>テキストテキスト</a></li>
</ul>

	Find what : \/([a-z_-]+)\"

	Replace with : /$1" <?php echo ($pname == "$1")? 'class="c"' : ''; ?>

 

 


Leave a Reply

Your email address will not be published. Required fields are marked *