All pastes #391885 Raw Edit

Someone

public text v1 · immutable
·published 2007-03-12 14:36 UTC
rendered paste body
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>New document</title>
<script type="text/javascript">

var blubb = 'line blubb\nhello</x>\n greedy thing test</x>';

var expression = /line([\W\w]*?)<\/x>/;

var result = blubb.match(expression)
if( result)
	for( var i=0; i < result.length; i++)
		alert( i + ' - ' + result[i] );
else
	alert('no match!');


</script>
</head>
<body>

</body>
</html>