codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Parsing, fish up all between <td> and </td> ... without possibility of confusion.  hermanningjaldsson at 13:35 on Thursday, September 11, 2008
 

im trying to get the content within td's.
like, <td>some-stuff-i-want-to-get</td>.

i would use:
my @the_tds_as_list = map { /<td>([^<]+)<\/td>/gi } $the_html;

but the problem is that theres tons of "<something>" units between <td> and </td>
which confuse the outcome because that something starts with an < but then turns out
not to be the </td> i want to end with.

so i would like to be able to fish out... <td>(anything-that-is-not:</td>)</td>

take notice that it must be not the entire five letters "</td>".


Does anybody know how to do that?



  Re: Parsing, fish up all between <td> and </td> ... without possibility of confusion.  hermanningjaldsson at 08:06 on Friday, September 12, 2008
 

the solution is:

my @the_tds_as_list = map { /<td>(.*?)<\/td>/gi } $the_html;










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Parsing, fish up all between <td> and </td> ... without possibility of confusion.
•  Technical problem with Visual Studio C++
•  Put confirm do you really on button instead of link
•  How Can i Create a list[Validation] in embedded Excel Object in JavaScript ?
•  Re: searching for gd::graph guide
•  Re: hash within hash
•  Re: Passing value through function then print... GONE WRONG!!
•  Need help to modify a formula for calculating in Javascript ?
•  form/cgi help


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008