Tapatalk

Several replacements at once

Several replacements at once

1
NewbieNewbie
1

    Dec 12, 2005#1

    When using "replace in files" option is it posible to make several replacements using "replace in files" option only once.
    Example:

    We want to replace:

    THIS1 with THIS11
    THIS2 with THIS22

    Is it posibble to make this replacement(like in example) using replace in files only once and not twice as a normal replacement of this example would require.

    Thank You

    206
    MasterMaster
    206

      Dec 12, 2005#2

      Search String: THIS([0-9])
      Replace String: THIS\1\1

      This requires a Regular Expression search and replace with Unix-Style regular expressions active.

      It can be done just as easily with UE-style regular expressions - read the Help.

      It will replace THIS followed by any digit with THIS followed by two of the digits.

      You can use your imagination to expand on this quite a bit.
      Software For Metalworking
      http://closetolerancesoftware.com