Skip to content

Commit

Permalink
Update 9-regular-expressions/07-regexp-escaping/article.md
Browse files Browse the repository at this point in the history
Co-authored-by: joaquinelio <joaquinelio@gmail.com>
  • Loading branch information
cortizg and joaquinelio committed Jul 11, 2020
1 parent b4eac7c commit 8f21d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 9-regular-expressions/07-regexp-escaping/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Los paréntesis también son caracteres especiales, por lo que si los buscamos,
alert( "función g()".match(/g\(\)/) ); // "g()"
```

Si estamos buscando una barra invertida `\`, como es un carácter especial tanto en cadenas regulares como en expresiones regulares, debemos duplicarlo.
Si estamos buscando una barra invertida `\`, como es un carácter especial tanto en cadenas regulares como en expresiones regulares, debemos duplicarlo.

```js run
alert( "1\\2".match(/\\/) ); // '\'
Expand Down

0 comments on commit 8f21d97

Please sign in to comment.