Robert Half Technology
 Search
Friday, July 30, 2010 ..:: Community Forum ::.. Register  Login
 Community Forum Minimize
     
  .NET Development  MCTS 70-536 Study Group  Regex presentation  

 Regex presentation 
 
Flip
72 posts
Regex presentation
Posted: 20 Feb 07 6:32 AM (Canada)
 
Here are the two docs I presented last night (Questions and PPT). If you have any questions, please drop them here. Thanks.
ODNC Study Group Regex.ppt ODNC Study Group Questions.doc 
scott.morrison
11 posts
www.ucdsb.on.ca
Re: Regex presentation
Posted: 20 Feb 07 7:00 AM (Canada)
 
Great presentation on Regex, Peter. Something I have shied away from and generally use javascript to check form input. Downloaded the Expresso app and running some tests. Very intuitive and gives nice 'code hints'. Scott
Flip
72 posts
Re: Regex presentation
Posted: 20 Feb 07 7:37 PM (N/A)
 
I've finally completed the sample of the regex for finding and deciphering the title-description out of an HTML title tag. This is very cool (IMHO). Give it a try to see how much you've learned, I guarantee you'll learn all you need to learn for the exam with this one example! Back references, greedy vs non-greedy matches, literals, metacharacters, etc! :>

The scenario is you're building a website to screen scrape a webpage and automatically pick out the HTML title tag and break out the title and description from it. Determining the pattern for the title tag is where I suggest starting. You'll be very happy when you get your tool telling you the resutls! Ok, so maybe it's just me and it's late! :>

Now for the tricky part. Using the same pattern, separate the title from the description. Remember, try to think in terms of variables (ie title and description should only include the correct characters and no more, try not to have the extra spaces part of the title requiring you to remember to use the Trim() in code).

I just tried putting the sample test data as well as the regex pattern in here, but the website mangled it beyond recognition (yes, even for Regex! :>). So instead I'll attach the Expresso project file, the regex pattern and some sample data to try it out on. Good luck.
Chapter 2 Quiz.zip Chapter4.zip Chapter 2 Quiz.zip Chpt2.zip Chpt1-4Quiz.zip Chpt4.zip RegExPattern.txt SampleData.txt GetTitleDescriptionFromHtml.zip ExpressoProject.zip RegExPatternToTry.txt SampleDataToTry.txt 
Flip
72 posts
Re: Regex presentation
Posted: 21 Feb 07 6:37 AM (Canada)
 
I'm not quite sure why it attached those other files to my last posting. Seems like it enum'd the entire file upload directory and included that in my files to attach. DOH!
scott.morrison
11 posts
www.ucdsb.on.ca
Re: Regex presentation
Posted: 21 Feb 07 6:43 AM (Canada)
 
Found the same glitch when uploading my files, Peter. Had to delete them all, change the names of the files and re-upload but after a few shots just apologized for the inconvenience and uploaded multiple copies. Scott
Ismaels
2 posts
Re: Regex presentation
Posted: 28 Aug 08 5:58 PM (Peru)
 
Flip, can you upload all files ( ppt, quizzes( q & A ), labs) pleaze, because i want to take this examen 70-536. thanks a lot !!
phenry
65 posts
Re: Regex presentation
Posted: 28 Aug 08 6:37 PM (N/A)
 
Hi Ismael's. Thank you for the posting, but unfortunately I don't have any of the ppts, quizzes or labs anymore. I took that exam last summer (2007). However, I CAN do you three better. This forum was part of the ODNC study group that used this MS Press book,
http://www.amazon.ca/Training-70-536-Microsoft-Framework-Foundation/dp/0735622779/ref=sr_11_1?ie=UTF8&qid=1219973627&sr=11-1

I used Transcender's for my exam prep and it was a great way to get real life examples of what the exam was going to be like. The book took you about 75% of the way, Transcender's take you the next 15% and yup, it's up to you to go the last 10% (%s will vary by person :> but that's what my experience was).

And lastly, get in touch with Orest, the ODNC head honcho. There's a chance the ODNC will be having that very same study group again in the new year! We're in the 2nd half of the web certification study group right now, and I think there will be more than a few people looking to complete the certification by getting the Framework (70-536) exam.

I hope that helps. Good luck! It's a lot of work but well worth it IMHO.
 
   .NET Development  MCTS 70-536 Study Group  Regex presentation
 
 
   

Search   

Copyright 2008 Ottawa .NET Community   Terms Of Use  Privacy Statement
Portal engine source code is copyright 2002-2010 by DotNetNuke. All Rights Reserved