Go Back   CodeCall Programming Forum > Software Development > C# Programming
Register Blogs Search Today's Posts Mark Forums Read

C# Programming C# (pronounced C-sharp) is a new object oriented language from Microsoft and is derived from C and C++. It also borrows a lot of concepts from Java too including garbage collection.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-01-2009, 02:24 PM
barkermn01's Avatar
Newbie
 
Join Date: May 2009
Location: Leeds, UK
Posts: 15
barkermn01 is an unknown quantity at this point
Regex and i must be maing a mistake.

help
PHP Code:
private string getQuestType(string name)
        {
            
string type "";
            
WebClient client = new WebClient();
            
sendNotice("Fetching url http://eq2.zam.com/db/questlist.html?questname=" name.Replace(" ""+"));
            
String htmlCode client.DownloadString("http://eq2.zam.com/db/questlist.html?questname=" name.Replace(" ","+"));
            
string regex = @"(?<=<table .*>)(?=.*)(?=</table>)";
            
Regex ex = new Regex(regexRegexOptions.IgnoreCase);
            
MatchCollection table ex.Matches(htmlCode);
            
regex "(?<=<tr>)(.*?)(?=</tr>)";
            
ex = new Regex(regexRegexOptions.IgnoreCase);
            
string tbale table[0].Value;
            
MatchCollection rows ex.Matches(tbale);
            
type rows[2].Value;
            return 
type;
        } 
for some reason table dose not = an array so i think my regex is wrong can some one check it please a call that works getQuestType("Orc Defilement");
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not much of a regex person? read this TcM General Programming 8 06-14-2009 07:31 AM
Regex in JSP with beans! nick3 Java Help 3 02-20-2009 10:00 AM
Regex Expressions John_L Perl 13 02-14-2009 02:01 PM
Tutorial: C# Regex NeedHelp CSharp Tutorials 2 05-01-2007 07:44 AM
regex (yuck) John PHP Forum 9 08-09-2006 01:35 AM


All times are GMT -5. The time now is 09:26 AM.


vBulletin v3.8.0 ©2010, Jelsoft Enterprises Ltd.


no new posts

LinkBacks Enabled by vBSEO 3.1.0