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

Feature: Extend replace-brick with Regex support #97

Open
LazyTarget opened this issue Sep 3, 2020 · 0 comments
Open

Feature: Extend replace-brick with Regex support #97

LazyTarget opened this issue Sep 3, 2020 · 0 comments
Labels

Comments

@LazyTarget
Copy link

Describe your feature or enhancement suggestion
As a user I would like a more flexible way of replacing the text data by using Regular Expressions

Add a checkbox to use RegularExpressions instead
The find textbox will act as the pattern
The replace textbox will act as the substitution string
Then run regex to get the result

Describe a concrete use case

Example 1:
Replacing specific words
Input: The quick brown fox jumps over the lazy dog.
Find: fox|dog
Replace: animal
Expected result: The quick brown animal jumps over the lazy animal.

Example 2:
Manipulating whitespace
Input:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

Find: \.
Replace: \.\n
Expected result:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Integer nec odio.
Praesent libero.
Sed cursus ante dapibus diam.
Sed nisi.
Nulla quis sem at nibh elementum imperdiet.
Duis sagittis ipsum.
Praesent mauris.
Fusce nec tellus sed augue semper porta.
Mauris massa.
Vestibulum lacinia arcu eget nulla.
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant