-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #268 from cortizg/es.javascript.info.9-04-a
Anchors: string start ^ and end $
- Loading branch information
Showing
3 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
9-regular-expressions/04-regexp-anchors/1-start-end/solution.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
An empty string is the only match: it starts and immediately finishes. | ||
Una cadena vacía es la única coincidencia: comienza y termina inmediatamente. | ||
|
||
The task once again demonstrates that anchors are not characters, but tests. | ||
Esta tarea demuestra una vez más que los anclajes no son caracteres, sino pruebas. | ||
|
||
The string is empty `""`. The engine first matches the `pattern:^` (input start), yes it's there, and then immediately the end `pattern:$`, it's here too. So there's a match. | ||
La cadena está vacía `""`. El motor primero coincide con `pattern:^` (inicio de entrada), sí, está allí, y luego inmediatamente el final `pattern:$`, también está. Entonces hay una coincidencia. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Regexp ^$ | ||
|
||
Which string matches the pattern `pattern:^$`? | ||
¿Qué cadena coincide con el patrón `pattern:^$`? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters