I have a large text file similar to the below and need to edit using PERL REGEX in UltraEdit:
þABC0118789þ|þABC0118789þ|þABC0118789þ|þABC0118789þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
þABC0118793þ|þABC0118793þ|þABC0118793þ|þABC0118793þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
þABC0118807þ|þABC0118807þ|þABC0118807þ|þABC0118807þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
þABC0118808þ|þABC0118808þ|þABC0118808þ|þABC0118808þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
Need to replace the 2nd and 4th ABCxxxxxxx string with the ABCxxxxxxx string at the beginning of the next line less one number as follows:
þABC0118789þ|þABC0118792þ|þABC0118789þ|þABC0118792þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
þABC0118793þþABC0118806þþABC0118793þþABC0118806þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
þABC0118807þþABC0118807þþABC0118807þþABC0118807þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
þABC0118808þþABC0118808þþABC0118808þþABC0118808þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
Your help is tremendously appreciated! Thanks.
þABC0118789þ|þABC0118789þ|þABC0118789þ|þABC0118789þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
þABC0118793þ|þABC0118793þ|þABC0118793þ|þABC0118793þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
þABC0118807þ|þABC0118807þ|þABC0118807þ|þABC0118807þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
þABC0118808þ|þABC0118808þ|þABC0118808þ|þABC0118808þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
Need to replace the 2nd and 4th ABCxxxxxxx string with the ABCxxxxxxx string at the beginning of the next line less one number as follows:
þABC0118789þ|þABC0118792þ|þABC0118789þ|þABC0118792þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
þABC0118793þþABC0118806þþABC0118793þþABC0118806þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
þABC0118807þþABC0118807þþABC0118807þþABC0118807þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
þABC0118808þþABC0118808þþABC0118808þþABC0118808þ|þþ|þþ|þþ|þþ|þþ|þþ|þþ|þþ
Your help is tremendously appreciated! Thanks.