butterfly
butterfly copied to clipboard
Improve ReplaceText to allow multiple lines regex evaluation
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.