Skip to content

Multiline mode of anchors ^ $, flag "m" #421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
phrasing change
  • Loading branch information
peruibeloko committed Jun 10, 2024
commit 2bdd273d5f9a883ff2dd91620a142f7ba77ed413
2 changes: 1 addition & 1 deletion 9-regular-expressions/05-regexp-multiline-mode/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Formalmente, "fim de linha" quer dizer "imediatamente antes de uma quebra de lin

## Busca por \n ao invés de ^ e $

Para encontrar uma quebra de linha podemos usar além das âncoras `pattern:^` e `pattern:$` o caractere `\n`.
Para encontrar uma quebra de linha, podemos usar não apenas as âncoras `pattern:^` e `pattern:$`, mas também o caractere de nova linha `\n`.

Qual a diferença? Vejamos um exemplo.

Expand Down