Esgrimidor: -------------------------------------------------------------------------------- I have a file with many lines and phrases.
Example of a line : This is a line. This line have two phrases. Not have three. Another line This is the second line. Never give up. I would like a script or search with regular expressions to replace the above lines with This line have two phrases Never give up How can i do that ? Best Regards -------------------------------------------------------------------------------- Hi, it seems, that something like the following regex replacement could work for you: ^([^.]*\.\s+)([^.]*)\..* replace with: $2 [x] Regular expressions Make sure to check the ouput on your text sources - surprise is always possible with regexes, if various cornercases are not chechked for carefully. hth, vbr -- <http://forum.pspad.com/read.php?2,67907,67908> PSPad freeware editor http://www.pspad.com
