
23.07.2009, 12:34
|
|
Динозавр
Регистрация: 10.01.2008
Сообщений: 2,841
С нами:
9649706
Репутация:
3338
|
|
Код:
<script type="text/javascript">
var testString = '34893275 Text lolo Text2 3535 Text lolo1 Text2 34893275 Text lolo2 Text2 3535 Text lolo3 Text2';
var re = /Text(.*?)Text2/g;
while (matches = re.exec(testString)) {
document.write(matches[1]);
}
</script>
|
|
|