Is it possible to remove 2nd or 3rd occurence of some string

Is it possible to remove 2nd or 3rd occurence of some string

9
NewbieNewbie
9

    Jan 08, 2005#1

    Hi
    1) For example how to remove/replace 3rd occurence of ":" with "xx"
    aaaa:bbbb:cccc:dddd:eeee - it means between cccc and dddd - of course words will not have the same lenght.
    2) how to remove dddd and replace it with lets say xxxxxxxxx - the point is to replace something after 3rd ":" not to search for dddd because I want to replace all words after 3rd ":" but before 4th ":"in all lines.
    I am interesting only how to do it with regular expressions if possible
    Thank You very much.

    6,616548
    Grand MasterGrand Master
    6,616548

      Re: Is it possible to remove 2nd or 3rd occurence of some st

      Jan 10, 2005#2

      Regular expressions in UltraEdit style!

      1) Search for %^(*:*:*^): and replace it with ^1??.
      ?? is simply nothing, if you want to remove the 3rd ':', or "xx", if you want to replace it.

      2) Search for %^(*:*:*:^)*: and replace it with ^1??:.
      ?? is the new word.
      Best regards from an UC/UE/UES for Windows user from Austria

      9
      NewbieNewbie
      9

        Re: Is it possible to remove 2nd or 3rd occurence of some st

        Jan 11, 2005#3

        Thanks