Joined: 24 Aug 2011
|Posted: Mon Aug 29, 2011 8:07 pm Post subject: Deleting a string, if 2nd time occures in the file name
abc ERP abc ERP.pdf
If an string "ERP" occures a 2nd time, then delete it.
This PF help doku examples works ony, if the doubled string is directly behind each other.
(\b\w+)\s+\1 is a regex that detects double words in a string.
For example, it would match 'the the ' in the string 'Paris in the the spring'