<?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 => 'ru',
  ),
  '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' => 'ru',
    '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">
   Возвращает <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="type"><a href="language.types.string.php" class="type string">string</a></span>) для поиска соответствий задаётся функцией
   <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> теперь могут принимать значение null.
       </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); ?>