<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.mbstring.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.mb-ereg-search.php',
    1 => 'mb_ereg_search',
    2 => '指定したマルチバイト文字列が正規表現に一致するか調べる',
  ),
  'up' => 
  array (
    0 => 'ref.mbstring.php',
    1 => 'マルチバイト文字列 関数',
  ),
  'prev' => 
  array (
    0 => 'function.mb-ereg-replace-callback.php',
    1 => 'mb_ereg_replace_callback',
  ),
  'next' => 
  array (
    0 => 'function.mb-ereg-search-getpos.php',
    1 => 'mb_ereg_search_getpos',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/mbstring/functions/mb-ereg-search.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.mb-ereg-search" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mb_ereg_search</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">mb_ereg_search</span> &mdash; <span class="dc-title">指定したマルチバイト文字列が正規表現に一致するか調べる</span></p>

 </div>
   
 <div class="refsect1 description" id="refsect1-function.mb-ereg-search-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mb_ereg_search</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$pattern</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$options</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   指定したマルチバイト文字列に対するマルチバイト正規表現マッチングを行います。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mb-ereg-search-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">pattern</code></dt>
     <dd>
      <p class="para">
       検索パターン。
      </p>
     </dd>
    
    
     <dt><code class="parameter">options</code></dt>
     <dd>
      <p class="para">
       検索オプション。説明は、<span class="function"><a href="function.mb-regex-set-options.php" class="function">mb_regex_set_options()</a></span> を参照ください。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-function.mb-ereg-search-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="simpara">
   <span class="function"><strong>mb_ereg_search()</strong></span>は、マルチバイト文字列が正規表現に
   一致するかどうか調べ、一致する場合に<strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>、それ以外の場合に
   <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。検索対象の文字列は、
   <span class="function"><a href="function.mb-ereg-search-init.php" class="function">mb_ereg_search_init()</a></span> により設定します。
   正規表現 <code class="parameter">pattern</code> を省略した場合は、
   前回のものを再利用します。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.mb-ereg-search-changelog">
  <h3 class="title">変更履歴</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>バージョン</th>
       <th>説明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.0.0</td>
       <td>
        <code class="parameter">pattern</code> と <code class="parameter">options</code> は、nullable になりました。
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.mb-ereg-search-notes">
  <h3 class="title">注意</h3>
  
  <blockquote class="note"><p><strong class="note">注意</strong>: <p class="para">内部エンコーディングあるいは
<span class="function"><a href="function.mb-regex-encoding.php" class="function">mb_regex_encoding()</a></span> で指定した文字エンコーディングを、
この関数の文字エンコーディングとして使用します。</p></p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mb-ereg-search-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.mb-regex-encoding.php" class="function" rel="rdfs-seeAlso">mb_regex_encoding()</a> - 現在のマルチバイト正規表現用のエンコーディングを取得または設定する</span></li>
    <li><span class="function"><a href="function.mb-ereg-search-init.php" class="function" rel="rdfs-seeAlso">mb_ereg_search_init()</a> - マルチバイト正規表現検索用の文字列と正規表現を設定する</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>