Regular expression
Posted: Sun Jun 24, 2007 7:23 am
Hi guys,
I have been given a group of .html files and I have to extract some image names from them.
.html files are similar.
This is a sample of one of them:
I need to extract 'b3ec038139m27saed706a436d958550d' from them.
BTW:In any file these values are different.
I have been given a group of .html files and I have to extract some image names from them.
.html files are similar.
This is a sample of one of them:
Code: Select all
<html>
<head>
//I do not copy all meta tags, javascripts, css, etc. here because they are too much
</head>
<body>
//Here are some tables and other tags but I do not copy them because of their size too
<a href="javascript: open_win('images.php?img=images/houses/b3ec038139m27saed706a436d958550d.jpg&alt=b3ec038139m27saed706a436d958550d.jpg',);" ><img alt="house" src="photos/thumbs/b3ec038139m27saed706a436d958550d.jpg" border=0></a>
//Other tags go here
</body
</html>BTW:In any file these values are different.