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

Enhancement for change order words #50

Closed
gmolledaj opened this issue Nov 4, 2022 · 2 comments
Closed

Enhancement for change order words #50

gmolledaj opened this issue Nov 4, 2022 · 2 comments

Comments

@gmolledaj
Copy link

gmolledaj commented Nov 4, 2022

Example: 123_abc, 32_def, 1_aec renamed to abc_123, def_32, aec_1. Using (1)(2) for example in search and (2)(1) in replace.

@pilot51
Copy link

pilot51 commented Jun 19, 2023

This can be done with regex.

Find: ([0-9]+)_([a-z]+)
Replace: \2_\1

This specifically applies to your example and will likely need to be modified for anything else, but it should get the gist across.

The parts in the parenthesis are capture groups and the \# references each captured group in order.

@gmolledaj
Copy link
Author

Perfect.

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

No branches or pull requests

2 participants