Try this regexp. s/###.*?###//g;
[EMAIL PROTECTED] wrote: > 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 > -- > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]