Regular expressions library
De cppreference.com
< cpp
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
La biblioteca de expresiones regulares proporciona una clase que representa expresiones regulares, que son una especie de mini-lenguaje utilizado para realizar patrones en cadenas .
Original:
The regular expressions library provides a class that represents expresiones regulares, which are a kind of mini-language used to perform pattern matching within strings.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
También se proporcionan en la biblioteca de expresiones regulares son clases de utilidad que proporcionan soporte para varios algoritmos, iteradores, excepciones, y los rasgos de tipo .
Original:
Also provided in the regular expressions library are utility classes that provide support for various algorithms, iterators, exceptions, and type traits.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Contenido |
[editar] Clases principales
Estas clases encapsular una expresión regular y los resultados de la coincidencia de una expresión regular dentro de una secuencia diana de caracteres .
Original:
These classes encapsulate a regular expression and the results of matching a regular expression within a target sequence of characters.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
(C++11) |
objeto de expresión regular Original: regular expression object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase de plantilla) |
(C++11) |
identifica la secuencia de caracteres ajustada por la subexpresión Original: identifies the sequence of characters matched by a sub-expression The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase de plantilla) |
(C++11) |
identifica una coincidencia de expresión regular, incluyendo todos los partidos de sub-expresión Original: identifies one regular expression match, including all sub-expression matches The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase de plantilla) |
[editar] Algoritmos
Estas funciones se utilizan para aplicar la expresión regular encapsulado en una expresión regular para una secuencia diana de caracteres ..
Original:
These functions are used to apply the regular expression encapsulated in a regex to a target sequence of characters..
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
(C++11) |
Intenta seleccionar una expresión regular para la secuencia de caracteres entero Original: attempts to match a regular expression to the entire character sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) |
(C++11) |
intentos para que coincida con una expresión regular para cualquier parte de la secuencia de caracteres Original: attempts to match a regular expression to any part of the character sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) |
(C++11) |
replaces occurrences of a regular expression with formatted replacement text (función de plantilla) |
[editar] Los iteradores
Los iteradores de expresiones regulares se utilizan para atravesar todo el conjunto de coincidencias de expresiones regulares se encuentran dentro de una secuencia .
Original:
The regex iterators are used to traverse the entire set of regular expression matches found within a sequence.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
(C++11) |
itera a través de todos los partidos de expresiones regulares dentro de una secuencia de caracteres Original: iterates through all regex matches within a character sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase de plantilla) |
(C++11) |
recorre la especificada sub-expresiones dentro de expresiones regulares en todos los partidos de una determinada cadena oa través de subcadenas coincidentes Original: iterates through the specified sub-expressions within all regex matches in a given string or through unmatched substrings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase de plantilla) |
[editar] Excepciones
Esta clase define el tipo de objetos lanzados como excepciones para informar de errores de la biblioteca de expresiones regulares .
Original:
This class defines the type of objects thrown as exceptions to report errors from the regular expressions library.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
(C++11) |
informes de errores generados por la biblioteca de expresiones regulares Original: reports errors generated by the regular expressions library The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase) |
[editar] Rasgos
La clase Regex rasgos se utiliza para encapsular los aspectos localizables de una expresión regular .
Original:
The regex traits class is used to encapsulate the localizable aspects of a regex.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
(C++11) |
ofrece metainformación sobre un tipo de carácter, requerido por la biblioteca regex Original: provides metainformation about a character type, required by the regex library The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase de plantilla) |
[editar] Constantes
Defined in namespace
std::regex_constants | |
(C++11) |
opciones generales de control del comportamiento de expresiones regulares Original: general options controlling regex behavior The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (typedef) |
(C++11) |
opciones específicas de juego Original: options specific to matching The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (typedef) |
(C++11) |
describe los diferentes tipos de errores coincidentes Original: describes different types of matching errors The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (typedef) |