develooper Front page | perl.beginners | Postings from March 2002

regex question

From:
maasha
Date:
March 13, 2002 02:11
Subject:
regex question
Message ID:
20020313080608.GA976@image
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
-- 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About