in reply to Re: HTML parsing OR capturing text from a string within tags
in thread HTML parsing OR capturing text from a string within tags

Thanks Liverpole, That explains a lot. I was not able to get it to work with my example because I guess that long string of goop is not a tag. So, I changed the tag = 'title' and that worked wonderfully!!! I noticed this line s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/ at the end of your posting but Iam not sure what that is for. unless that is a very complex regular expression to parse the data out. Thanks for all of your time and help. I might be able to make something work form what you wrote. Kevin

Replies are listed 'Best First'.
Re^3: HTML parsing OR capturing text from a string within tags
by liverpole (Monsignor) on Dec 24, 2006 at 13:43 UTC
    Hi kevyt,

    I'm glad you were able to get further with your problem.  Always consider printing out intermediate results, so you know what your data looks like at each step of the way.

    The line at the end of my post:

    s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

    is just my "signature".  If you run it as a separate Perl script, it prints liverpole.  You can create your own signature by editing your Signature Settings page.


    s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/