i need to find any words (or punctuation) that are composed of more than 4 letters of the same character and shorten them to 4
that is
AAAAAAAAAAA -> AAAA
???????????????? -> ????
........................... -> ....
Brrrrrrrrrrrrrrrrr -> Brrr
any help would be appriciated
shrotening length of same characters words
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: shrotening length of same characters words
Use a perl regex search/replace
Search for
Replace with:
Search for
Code: Select all
([a-z\?\.]){5,}?
Code: Select all
$1$$1$$1$$1$
Re: shrotening length of same characters words
thanks but it doesnt work, i created the rule for perl pattern search/replace
in the trial box i entered
............................
no changes....
in the trial box i entered
............................
no changes....
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: shrotening length of same characters words
Check for extra white space or carriage returns at the end of the search phrase.