Gossamer Forum
Home : General : Perl Programming :

found double word

Quote Reply
found double word
How to write a perl program that require:



1. Accept a file to be checked, report each line of the file that has doubled words, then highlight each doubled word.



2. Work across lines, even finding situations where a word at the end of one line is repeated at the beginning of the next.



3. Find doubled words despite capitalization differences, such as ¡§The the ¡K¡¨, as well as allowing differing amounts of whitespace (space, tabs, newlines) to lie between words.



4. Find doubled words that are separated by HTML tags.



Can anyone help me? Thx
Quote Reply
Re: [avdic] found double word In reply to
This is actually relatively complicated (especially part 4), you may want to contact someone on the forum to see if they can do it as a custom job for you.