goombamd
11-16-2009, 12:56 PM
i.e. find Alt="*" and replace with Alt="*" Title="*"
Is there a way to find and copy parts of tags?
For example, I have a bunch of alt parts in area tags
Code:
<area shape="poly" coords="1356,1179,1346,1206,1341,1221,1335,1226,1344,1233,1356,1224,1367,1214,1373,1209" Alt="Area 1" href="#"></area>
<area shape="poly" coords="1265,1212,1286,1235,1289,1229,1293,1227,1286,1217,1286,1204,1281,1181,1282,1170,1278,1169" Alt="Area 2" href="#" ></area>
Now, let's say I wanted to do this for hundreds of areas:
Code:
<area shape="poly" coords="1356,1179,1346,1206,1341,1221,1335,1226,1344,1233,1356,1224,1367,1214,1373,1209" Alt="Area 1" Title="Area 1" href="#"></area>
<area shape="poly" coords="1265,1212,1286,1235,1289,1229,1293,1227,1286,1217,1286,1204,1281,1181,1282,1170,1278,1169" Alt="Area 2" Title="Area 2" href="#" ></area>
Is there a way to convert the alt tags into title tags and add it to the text?
i.e. find Alt="*" and replace with Alt="*" Title="*"
Is there a way to find and copy parts of tags?
For example, I have a bunch of alt parts in area tags
Code:
<area shape="poly" coords="1356,1179,1346,1206,1341,1221,1335,1226,1344,1233,1356,1224,1367,1214,1373,1209" Alt="Area 1" href="#"></area>
<area shape="poly" coords="1265,1212,1286,1235,1289,1229,1293,1227,1286,1217,1286,1204,1281,1181,1282,1170,1278,1169" Alt="Area 2" href="#" ></area>
Now, let's say I wanted to do this for hundreds of areas:
Code:
<area shape="poly" coords="1356,1179,1346,1206,1341,1221,1335,1226,1344,1233,1356,1224,1367,1214,1373,1209" Alt="Area 1" Title="Area 1" href="#"></area>
<area shape="poly" coords="1265,1212,1286,1235,1289,1229,1293,1227,1286,1217,1286,1204,1281,1181,1282,1170,1278,1169" Alt="Area 2" Title="Area 2" href="#" ></area>
Is there a way to convert the alt tags into title tags and add it to the text?
i.e. find Alt="*" and replace with Alt="*" Title="*"