bugmenot,
<!DOCTYPE html >
<html>
<head>
<title></title>
<style type="text/css">
div{
height: 100px;
width: 100px;
border: solid 2px #FF0000;
text-align: center;
}
</style>
</head>
<body>
<div id="sampleid123">none</div>
<div id="test">test</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script type="text/javascript">
var regexp = /sampleid/;
$("div").filter(function () {
return regexp.test($(this).attr("id"))
}).css("display", "none");
</script>
</body>
</html>