Regex with inner HTML

Welcome Forums General PowerShell Q&A Regex with inner HTML

This topic contains 1 reply, has 1 voice, and was last updated by

5 years ago.

  • Author
  • #12004

    Points: 0
    Rank: Member

    I'm trying to scrape a page. It seems the page doesn't work well unless one uses cookies, so I decided to try to use the IE COM object.

    Things seem to be fine, but then I try to use a regex to pull out information, and it always seems to be blank. I've also tried [string] instead of tostring().

    Anything obvious that I would be missing when trying to use the regex below?

    $ie=new-object -com internetexplorer.application

  • #12006

    Points: 0
    Rank: Member

    Solved: Don't use quotes in the first element of the matches method.


The topic ‘Regex with inner HTML’ is closed to new replies.