alle prese (nuovamente) con il problema di tag ID3 dei file multimediali, mi servirebbe una bella funzione che restituisce una stringa compresa tra' due marcatori.
public function EstraiStringa(stringa as string,leftMarker as string, rightmarker as string) as string
questo perche' alcuni programmi tipo estituiscono una sola riga con tutte le proprieta' in linea.
Tipo (e sfortunatamente il ritorno a capo non funziona sempre ....):
id3v1 tag info for /home/v1p3r/Musica/Pokki_DJ_-_Energy_sigletta del calcio a 5.mp3:
Title : Artist:
Album : Year: , Genre: Unknown (255)
Comment: Track: 1
id3v2 tag info for /home/v1p3r/Musica/Pokki_DJ_-_Energy_sigletta del calcio a 5.mp3:
COMM (Comments): ()[eng]: http://www.jamendo.com cc_standard
TALB (Album/Movie/Show title): Energy
TCOM (Composer): Pokki DJ
TCON (Content type): Electronic (52)
TENC (Encoded by): Jamendo:http://www.jamendo.com| LAME
TIT2 (Title/songname/content description): Energy
TPE1 (Lead performer(s)/Soloist(s)): Pokki DJ
TRCK (Track number/Position in set): 1
TYER (Year): 2014
WCOP (Copyright/Legal information): http://creativecommons.org/licenses/by/3.0/
WOAF (Official audio file webpage): http://www.jamendo.com/en/track/1282679
WOAR (Official artist/performer webpage): http://www.jamendo.com/en/artist/6135
WOAS (Official audio source webpage): http://www.jamendo.com/en/album/152981
WPUB (Official publisher webpage): http://www.jamendo.com
APIC (Attached picture): (Cover Image)[, 3]: image/jpg, 18747 bytes
TXXX (User defined text information): (Tagging time): 2017-01-30T12:19:13
qualche segnalazione di funzione "magica" interna a gambas3?
io per ora ho fatto cosi':
Public Function EstraiStringa(stringa As String, leftMarker As String, rightMarker As String) As String
Dim appoggio As String
appoggio = Mid(stringa, InStr(stringa, leftMarker) + Len(leftMarker))
appoggio = Left(appoggio, InStr(appoggio, rightMarker) - 1)
Return appoggio
End