ตัวอย่างลิ้งก์มีรูปแบบอื่นอีกไหมครับ หรือมีรูปแบบแค่ประมาณนี้
h33ps://www.website.com/room/001/photo.html
h33ps://www.website.com/room/002/photo.html
h33ps://www.website.com/room/003/photo.html
เพราะถ้าแค่ประมาณนี้ก็ง่ายเลยครับ
ใช้ javascript regexvar links = [
'h33ps://www.website.com/room/001/photo.html',
'h33ps://www.website.com/room/002/photo.html',
'h33ps://www.website.com/room/003/photo.html'
];
var res = [];
links.forEach( function(v) {
res.push( v.match(/\/(\d+)\//)[1] );
});
console.log( res );
ถ้าหาเป็นชื่ออ่ะครับ เช่น
h33ps://www.website.com/room/dog/photo.html
h33ps://www.website.com/room/cat/photo.html
h33ps://www.website.com/room/fish/photo.html
ตรง dog cat fish
ปล. ลองใช้ imacro ไม่ได้ครับ ไม่มีหน้าเว็บให้เก็บ