Merge pull request #213 from janosorcsik/pr/98

Fix typos
This commit is contained in:
Zeeshan Ahmad 2020-06-30 12:11:27 +04:00 committed by GitHub
commit 0a1960f590
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -32,7 +32,7 @@
* [Tiếng Việt](translations/README-vn.md)
* [فارسی](translations/README-fa.md)
## What are Regular Expressions?
## What is Regular Expression?
> A regular expression is a group of characters or symbols which is used to find a specific pattern in a text.
@ -280,7 +280,7 @@ regular expression `[0-9]{3}` means: Match exactly 3 digits.
## 2.5 Capturing Groups
A capturing group is a group of sub-patterns that is written inside parentheses
A capturing group is a group of subpatterns that is written inside parentheses
`(...)`. As discussed before, in regular expressions, if we put a quantifier
after a character then it will repeat the preceding character. But if we put a quantifier
after a capturing group then it repeats the whole capturing group. For example,
@ -356,7 +356,7 @@ character.
In regular expressions, we use anchors to check if the matching symbol is the
starting symbol or ending symbol of the input string. Anchors are of two types:
The first type is the caret `^` that check if the matching character is the first
The first type is the caret `^` that checks if the matching character is the first
character of the input and the second type is the dollar sign `$` which checks if a matching
character is the last character of the input string.

View File

@ -33,6 +33,7 @@
* [فارسی](../translations/README-fa.md)
## Qué es una expresión regular?
> Una expresión regular es un grupo de caracteres o símbolos, los cuales son usados para buscar un patrón específico dentro de un texto.
Una expresión regular es un patrón que que se compara con una cadena de caracteres de izquierda a derecha. La palabra "expresión regular" puede también ser escrita como "Regex" o "Regexp". Las expresiones regulares se utilizan para reemplazar un texto dentro de una cadena de caracteres (*string*), validar formularios, extraer una porción de una cadena de caracteres (*substring*) basado en la coincidencia de una patrón, y muchas cosas más.
@ -431,7 +432,7 @@ El modificador `g` se utiliza para realizar una coincidencia global
Por ejemplo, la expresión regular `/.(At)/g` significa: cualquier carácter,
excepto la nueva línea, seguido del carácter en minúscula `a`, seguido del carácter
en minúscula `t`. Debido a que proveimos el indicador `g` al final de la expresión
regular, ahora encontrará todas las coincidencias de toda la cadena de entrada, no sólo la
regular, ahora encontrará todas las coincidencias de toda la cadena de entrada, no sólo la
primera instancia (el cual es el comportamiento normal).