I need perl help. <data parsing>

Discussion in 'OT Technology' started by Juicer, Jan 9, 2003.

  1. Juicer

    Juicer Guest

    get /_1_nvttc80ti8pet__info.xcite/ypv3/list.htm?&kcfg=ypus&ypinsp=1&searchtype=all&fromform=qsearch&qhqn=newburgh+auto+auction
    &qn=newburgh+auto+auction&qc=newburgh&qs=ny&qk=15&xmlurl=http%3a//yp.superpages.com/xml/sppage.phtml&17151

    Say this is your url you need to parse, but the each line with have
    a different url. The same names, but possiblity in different
    orders. Like one will have '&qc=', '&qs=' but the next line might
    have '&qs' first instead. So question is... how in perl do I parse
    just a chunk on the data based on a starting and ending value?
    is it possible? Say I want to parse the string starting at '&qs='
    and ending at the next '&'.
     

Share This Page