1
0
mirror of https://github.com/php/doc-es.git synced 2026-03-25 16:02:13 +01:00
Files
archived-doc-es/reference/mongo/mongoregex/construct.xml
Pedro Antonio Gil Rodríguez 19a750b6eb Actualizacion a la ultima version
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@330890 c90b9560-bf6c-de11-be94-00142212c4b1
2013-07-11 11:45:01 +00:00

99 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 7f70d72ea665115a5d8d5ef22e237bb8ce087ce7 Maintainer: chuso Status: ready -->
<!-- Reviewed: no Maintainer: andresdzphp -->
<refentry xml:id="mongoregex.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>MongoRegex::__construct</refname>
<refpurpose>Crea una nueva expresión regular</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <methodname>MongoRegex::__construct</methodname>
<methodparam><type>string</type><parameter>regex</parameter></methodparam>
</methodsynopsis>
<para>
Crea una nueva expresión regular.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term>
<parameter>regex</parameter>
</term>
<listitem>
<para>
Texto de la expresión regular, con la forma <literal>/expresión/banderas</literal>.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Devuelve una nueva expresión regular.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Ejemplo de <function>MongoRegex::__construct</function></title>
<para>Este ejemplo usa una expresión regular para consultar todos los documentos
con un campo de nombre de usuario que empieza con (<literal>^</literal>) con una
<literal>l</literal> y una vocal (<literal>[aeiouy]</literal>),
insensible a mayúsculas/minúsculas (<literal>/i</literal>).</para>
<programlisting role="php">
<![CDATA[
<?php
$buscar_luis = new MongoRegex("/^l[aeiouy]/i");
$cursor = $collection->find(array("usuario" => $buscar_luis));
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><methodname>MongoRegex::__toString</methodname></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->