Last active
March 10, 2019 12:19
-
-
Save ezhov-da/dd32a704304eef79235fc25477772b85 to your computer and use it in GitHub Desktop.
regexp вырезание определенной строки без просмотра назад
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
Вместо просмотра назад: (?<=@+)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