2 Replies Latest reply on Nov 4, 2012 7:26 AM by philmodjunk

    How to parse out ISBN-13 from html

    PeterMontague

      Title

      How to parse out ISBN-13 from html

      Post

           I tried parsing out the ISBN-13 starting at "ISBN-13". I think the "-" might have made the parse not work.

           I tried putting in a "\" before the "-". But that didn't work etiher. 

           How can I legislate for the "-"?

           As a workaround I'm choosing a string before it. But this could result in errors. 

           Here is what I am trying.

            

           Let ( [ T = this::Child Source Code ;
                     start = Position ( T ; "ISBN" ; 1 ; 1 ) + 49 ;
                     end = Position ( T ; "</li>" ; start ; 2 )
                   ] ;
                   Trim ( Middle ( T ; start ; end - start ) )
                  )
           But it only works if there is no other "</li>" preceeding the string. I thought if I used "start" in my end position it would look for the first "</li>" after the text.