AnsweredAssumed Answered

How to parse out the Publisher from a text string

Question asked by PeterMontague on Oct 4, 2012
Latest reply on Oct 25, 2012 by philmodjunk

Title

How to parse out the Publisher from a text string

Post

     I am trying to parse out the publisher. At the moment I'm using this calculation

      

     Let ( [ T = this::Child Source Code ;
               start = Position ( T ; "<li><b>Publisher:</b>" ; 1 ; 1 ) + 22 ;
               end = Position ( T ; ")</li>" ; 1 ; 1 )
             ] ;
             Trim ( Middle ( T ; start ; end - start ) )
            )
     But this gets me all of the text between the tags

<li><b>Publisher:</b> Poolbeg Press Ltd (11 Jan 1996)</li>

           
     On other occasions the text between the tags is like this:
<li><b>Publisher:</b> Jossey Bass; 1st edition (25 Oct 1993)</li>
      
     Is there a way to Get the Publisher without any other information or white spaces?

           

           

           

      

Outcomes