LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
wiebe@CARYA

Allow replace with reg ex result in Text Search Results dialog

Status: New

When you do a text seach, you can use a regular expression. For example "(cat|dog)[0-9]" will match all strings beginning with cat or dog, followed by a number.

 

In the search and replace function, we can use "$1" to replace the match with any of the capturing groups (or e.g. "$1$1$2" to replace with several). Can we have this in the replace text results dialog?

 

So "(cat|dog)[0-9]" with replacement string "$1-$1" will have the following results:

 

cat1 -> 1-1

dog9 -> 9-9

 

It could save a lot of work... In this case 20 search and replaces can be done with one.

1 Comment
wiebe@CARYA
Knight of NI