Be able to use regex in interface bulk renaming #1983
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
Issue type
[X] Feature request
[ ] Bug report
[ ] Documentation
Environment
Description
Hi !
I'm currently using interface bulk renaming implemented in v2.3.0 in order to rename stack / module interfaces easily from the IHM. Currently it seems to use
replace()
string built-in function to do the find / replace processing.It does the work very well most of the time but it has some limitations. For instance, let's say you have interfaces noted with numbers only (1, 2, 3, ...) and you want to replace that with (1/1, 1/2, 1/3, ...). For this particular case I don't think it's actually possible.
I would suggest to use
re.sub()
function to do the find / replace processing. It would not change the current use, but it would add the possibility to do something like :If that feature request is accepted I would be happy to do a pull request with that little modification.
Have a good day,
Matthieu.
The text was updated successfully, but these errors were encountered: