Expresiones regulares, rango de búsquedas ['ESP','ENG']

En las expresiones se regulares se pueden hacer cosas increíbles como filtrar cadenas de texto por cierto tipo de caracteres u cantidad de veces que se repite el patrón.
Para este tipo de filtrado de cadenas de texto recomiendo utilizar el símbolo “+”, que indica que el patrón debe existir al menos una vez o más dentro de la expresión regular.

In regular expressions you can do incredible things like filter text strings by a certain type of character or number of times the pattern is repeated. For this type of filtering of text strings I recommend using the “+” symbol, which indicates that the pattern must exist at least once or more within the regular expression.

pattern.jpg
Este ejemplo es muy sencillo de entender a simple vista, porque lo único que realiza es buscar si los caracteres de la cadena de texto cumplen con los requisitos dentro del patrón, entre corchetes coloque un patrón donde debe coincidir entre letras de a-z en caracteres minúsculos, si existen letras en minúscula coincide sino lo rechaza.
De igual manera se puede aplicar con números y también se pueden mezclar los patrones, pero se aplican acorde al orden en cual se escribieron.

This example is very easy to understand at a glance, because the only thing it does is look for whether the characters of the text string meet the requirements within the pattern, between brackets place a pattern where it must match between letters a-z in lowercase characters, If there are lowercase letters, it matches, otherwise it rejects it. In the same way, it can be applied with numbers and the patterns can also be mixed, but they are applied according to the order in which they were written.
![pattern1.jpg]() Ahora a la hora de aplicar cantidad de repeticiones se puede agregar al final entre llaves, donde también se colocan como valor de rango, desde un mínimo hasta un máximo.
Now when applying the number of repetitions it can be added at the end between curly braces, where they are also placed as a range value, from a minimum to a maximum.


0
0
0.000
1 comments
avatar

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support. 
 

0
0
0.000