Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ezhov-da/dd32a704304eef79235fc25477772b85 to your computer and use it in GitHub Desktop.
Save ezhov-da/dd32a704304eef79235fc25477772b85 to your computer and use it in GitHub Desktop.
regexp вырезание определенной строки без просмотра назад
Вместо просмотра назад: (?<=@+)cat#+<br>
Можно использовать символ: \K<br>
который говорит о том, какую часть следует откинуть после нахождения<br>
Итог: @+\Kcat#+<br>
В java не работает :(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment