I am trying to write a short script that will pull from another web page hosted on a different server a list of game servers that our online. I have been able to grab the page and pull out some of the data out but I seem to be pulling alot of garbage out of the page that I do not want. I use this line after reading in the web page to pull the data I want out
($title) = $_ =~ /\<A HREF="df2dinfo1_cus.htm(.*)\<\/A\>/;
this should pull out the href tag for the url of the online game server listed on the webpage. The format of href tag on the web page is
<A HREF="df2dinfo1_cus.htm?NK=ejffechnneffnUXmjojpU&CK=">NAME OF GAME </A>
The "NAME OF GAME" is what I am trying to pull out but because of the NK= part and the line of letters after it I need to do a wild card search (the letters are a reference number that changes for earch server chreated) but I am unsure on how to do this could some one point me in the right direction.
($title) = $_ =~ /\<A HREF="df2dinfo1_cus.htm(.*)\<\/A\>/;
this should pull out the href tag for the url of the online game server listed on the webpage. The format of href tag on the web page is
<A HREF="df2dinfo1_cus.htm?NK=ejffechnneffnUXmjojpU&CK=">NAME OF GAME </A>
The "NAME OF GAME" is what I am trying to pull out but because of the NK= part and the line of letters after it I need to do a wild card search (the letters are a reference number that changes for earch server chreated) but I am unsure on how to do this could some one point me in the right direction.