How to delete some expression in the title tag ?

Tool for Search and Replace across multiple files.
patrmich
Posts: 18
Joined: Fri Jul 01, 2011 9:01 am

How to delete some expression in the title tag ?

Post 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
User avatar
Fool4UAnyway

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

Post by Fool4UAnyway »

Find:
, REF .{3,10}\</title\>

Replace by:
</title>
patrmich
Posts: 18
Joined: Fri Jul 01, 2011 9:01 am

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

Post by patrmich »

Hi,

Thnak you very much to Fool4UAnyway

It does work perfectly with Regular expression search and replace.

Patrick
Post Reply