hi i have a long text file. in this text file several strings of the form: ### filename.jpg ### are embedded. how should a regex look that takes following: <text before> ### filename.jpg ### <text after> and returns <text before> <text after> and the filename.jpg saved in a $ :o) martin --Thread Next