Marcelo wrote:
Which regular expression would you use to remove the <title> and </title> from a line like this one:

<title>Here goes a webpage's title</title>

Thanks a lot in advance.

Try something like:


s/<\/?title>//

Although, I can remember if < and > are special regex characters so you might need to escape them (\< and \>).

--
Andrew Gaffney
System Administrator
Skyline Aeronautics, LLC.
776 North Bell Avenue
Chesterfield, MO 63005
636-357-1548


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to