![]() |
#1
|
|||
|
|||
![]()
Hi all! I have a software that generates documents with some repetitive pattern in the middle. The following is an example: "|" indicates where the repetitive starts
(normal content)...apple is red and banana | apple is red and banana is yellow...(normal content) And I want to turn that into: (normal content)...apple is red and banana is yellow...(normal content) The problem is that the repetitive part's content is changeable. I can somehow control the length of the repetitive part (I can define it as integer L) and also the frequency of such thing based on time, but not word-wise or letter-wise. My current thought is to compare a combination of several words (like "apple is red", the length of this string < L) with its possible repetitive that is located on the next Lth word; if they're the same, delete the content in between. Or search a combination within the range from itself to the next Lth word to see if there's a repetitive one and then delete the content between these 2. Could someone help me out on this please? I also appreciate other more efficient/accurate methods. Thank you very much. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
dyb | Word VBA | 5 | 02-17-2022 01:43 AM |
![]() |
Cov_ATC | Word VBA | 10 | 11-28-2021 03:41 PM |
Word Sections - Bookmarks | ldoodle | Word VBA | 3 | 11-07-2018 07:04 AM |
Word is switching sections upon printing/PDF | rlockwood | Word | 0 | 01-08-2018 09:23 AM |
Word 2007 - how to manage sections? | JQP | Word | 2 | 10-10-2011 11:06 AM |