IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> help please, probably very obvious..., findline "<a href=\""
blueperil
post Oct 12 2006, 20:46
Post #1


Member


Group: Full Members
Posts: 10
Joined: 12-October 06
Member No.: 3789
Mp3tag Version: 2.36a



Hi,
I'm trying to put my own code together to pull info & images from juno.co.uk (any help appreciated at this point)

I've been looking at how the discogs one works but i don't understand this;

how

findline "<a href=\""
findinline "<a href=\""
sayuntil "\""
say "|"

will produce '/release/9130' from this;

<a href="/release/9130">Exit Planet Dust</a>

the syntax looks wrong, it shouldn't be able to find <a href=\" as it doesn't appear anywhere, yet it works.

This is probably something really obvious but could someone explain it?

Cheers.

This post has been edited by blueperil: Oct 12 2006, 20:47
Go to the top of the page
 
+Quote Post
dano
post Oct 12 2006, 21:00
Post #2


Moderator


Group: Moderators
Posts: 5683
Joined: 4-September 03
From: Germany
Member No.: 201
Mp3tag Version: 2.63



\ is an escape sign because " mark start and end of a string so when you search for a " in the html code you need to write \"


--------------------
Go to the top of the page
 
+Quote Post
blueperil
post Oct 12 2006, 21:06
Post #3


Member


Group: Full Members
Posts: 10
Joined: 12-October 06
Member No.: 3789
Mp3tag Version: 2.36a



QUOTE (dano @ Oct 12 2006, 21:00) *
\ is an escape sign because " mark start and end of a string so when you search for a " in the html code you need to write \"


thanks for the quick reply, thought it might be something obviously simple..

cheers
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 2nd September 2014 - 00:26