Skip to content

Conversation

@Wineh
Copy link
Contributor

@Wineh Wineh commented Mar 5, 2025

Check if a certain term is present in line and remove the line if this is the case. This option is needed for chases which cannot be solved with the regex, starts-with or ends-with.

@Wineh Wineh requested a review from zyronix March 5, 2025 12:59
@zyronix
Copy link
Collaborator

zyronix commented Mar 12, 2025

Those cases can be solved using regex:

remove_this_one
thisoneaswell
butnotthisone
python3 bin/demeuk.py -i test.txt --check-regex '^[^_]+$','^[^this]'
butnotthisone

I'll add this example to the regex docs :). Still think this is a good pull request, as the syntax of your options is a lot easier.

@zyronix zyronix merged commit d387cc3 into master Mar 12, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants