Skip to content
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

Pattern matching error #5

Closed
ghost opened this issue Apr 15, 2022 · 2 comments
Closed

Pattern matching error #5

ghost opened this issue Apr 15, 2022 · 2 comments
Labels
wontfix This will not be worked on

Comments

@ghost
Copy link

ghost commented Apr 15, 2022

Не желательно использовать replace при обрезке паттерна. Можно использовать встроенную функцию группировки из библиотеки.

pattern="сколько будет(?: |$)(.*)"
event.pattern_match.group(0)

также

event.text.split("сколько будет ")[1]

@AetherMagee AetherMagee added the wontfix This will not be worked on label Apr 15, 2022
@AetherMagee
Copy link
Owner

AetherMagee commented Apr 15, 2022

Too lazy to rewrite all the functions on one of those patterns, but ty for a piece of advice, will use it in the future

@ghost
Copy link
Author

ghost commented Apr 16, 2022

Too lazy to rewrite all the functions on one of those patterns, but ty for a piece of advice, will use it in the future

похуй

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant