Page 1 of 1

How to delete some expression in the title tag ?

Posted: Wed Mar 07, 2012 10:02 am
by patrmich
Hi,

I have a directory of html pages (each page is related to an item full description)

In each html page is a <title> tag having the following shape :
<title>short description of the item, REF xxxxxx</title>

For some reasons, I would like to delete the last part of the title tag of each html page.
So, I would like to delete the following :
, REF xxxxxx
The number of characters (xxxxx) can vary from 3 to 10.

Does any one know how to make such deletion when using Text crawler ?

Thank you in advance for any help in this matter.

Patrick

Re: How to delete some expression in the title tag ?

Posted: Wed Mar 07, 2012 10:53 pm
by Fool4UAnyway
Find:
, REF .{3,10}\</title\>

Replace by:
</title>

Re: How to delete some expression in the title tag ?

Posted: Fri Mar 09, 2012 9:52 am
by patrmich
Hi,

Thnak you very much to Fool4UAnyway

It does work perfectly with Regular expression search and replace.

Patrick