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

Improve ReplaceText to allow multiple lines regex evaluation #246

Open
fabiocarvalho777 opened this issue Aug 30, 2018 · 2 comments
Open

Comments

@fabiocarvalho777
Copy link
Member

fabiocarvalho777 commented Aug 30, 2018

Transformation utility com.paypal.butterfly.utilities.operations.text.ReplaceText allows replacing text in a text file based on a regular expression.

However, it has an important limitation. The regular expression evaluation, and replacement, is limited to the content within a single line. In other words, if user would like to have a regex that goes across multiple lines of text, that will not work.

That happens because the implementation currently reads the file line by line, and then evaluate it based on the given regex.

This issue is about removing this limitation, allowing multiple lines regex evaluation.

Important note: this utility might become obsolete if #59 or #129 get implemented.

@radkrish
Copy link
Contributor

@fabiocarvalho777 Can you please provide more details on this issue?

@fabiocarvalho777
Copy link
Member Author

@radkrish just added a description to the issue. Thanks.

@fabiocarvalho777 fabiocarvalho777 removed this from the 3.0.0 milestone Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants