Moin,
ich krieg's einfach nicht in die Birne ... :comp2:
Also, ich möchte aus folgender Zeile
das hier
extrahieren, aber es klappt einfach nicht, egal wie ich es drehe und wende.
Die "490" sind variabel !!!
Spoiler anzeigen
#cs ----------------------------------------------------------------------------
[/autoit] [autoit][/autoit] [autoit]AutoIt Version: 3.2.4.9
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
[/autoit] [autoit][/autoit] [autoit]#include <File.au3>
#include <INet.au3>
#include <Array.au3>
dim $szSource
Dim $arSource
Dim $c = 1
Dim $szLine
$arSource = StringSplit(_INetGetSource('http://www.ninjatune.net/solidsteel/playlist.php?play=1'), @CRLF)
[/autoit] [autoit][/autoit] [autoit]for $i = 1 To $arSource[0]
; Geht nicht !
; If StringRegExp($arSource[$i], '(?i:DK, Zeep)') Then
; $szLine &= StringRegExpReplace($arSource[$i], '.*\d*\>|</option>', '') & '|'
; EndIf
; Geht nicht !
; If StringRegExp($arSource[$i], '(?i:DK, Zeep)') Then
; $szLine &= StringRegExpReplace($arSource[$i], '<option value="\d*\">|</option>', '') & '|'
; EndIf
; Geht ...
If StringInStr($arSource[$i], 'span class="listcol"') Then
$szSource &= StringRegExpReplace($arSource[$i], '(?i).*\">|</span>', '') & '|'
EndIf
Next
$arSource = StringSplit($szSource, '|')
[/autoit] [autoit][/autoit] [autoit]For $i = 1 To $arSource[0]
Switch $c
Case 1
$szLine &= $arSource[$i] & ' - '
$c += 1
Case 2
$szLine &= $arSource[$i] & ' ('
$c += 1
Case 3
$szLine &= $arSource[$i] & ')|'
$c = 1
EndSwitch
Next
$arSource = StringSplit($szLine, '|')
_ArrayDisplay($arSource)
;_FileWriteFromArray('Playlist.txt', $arSource, 1)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit]:irre:
Gruß
Greenhorn