C#
  Home arrow C# arrow Page 5 - Working with Regular Expressions in C#
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
C#

Working with Regular Expressions in C#
By: Barzan "Tony" Antal
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 9
    2008-08-19

    Table of Contents:
  • Working with Regular Expressions in C#
  • Working with RegExes
  • Working with RegExes, continued
  • Lots of Examples
  • Final Words

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Working with Regular Expressions in C# - Final Words


    (Page 5 of 5 )

    We have just arrived to the end of this article. I hope you have found this journey educational and informative. By now you should be familiar with most of the inner secrets of Regular Expressions. Formatting a pattern in its formal and concise language won’t scare you away. Neither will you look surprised when you try to continue the piece of code that your co-worker has written and it contains funny looking patterns.

    Surely, regular expressions aren’t that critical because the truth is you could pretty much write pattern matching algorithms right out of memory; you may be very familiar with the well-known and efficient algorithms such as the Knuth-Morris-Pratt and/or the Boyer-Moore variations. However, implementing these, especially in the case of patterns that we can’t know in advance (where meta-chars help) can become quite challenging.

    Additionally, anybody that works in software development knows that resource efficiency—both computer resources and time— should never be sacrificed. Therefore, it makes sense to utilize something that is specifically designed to accomplish the task, and it does the job amazingly well; you only need to know how to use it.

    Taking advantage of regular expressions can become quite fun. Once you get the hang of it you will be positively impressed by how frequently you’ll be able to use them, starting with your favorite word processor, various utilities, up to scripting and programming languages as well. You can save hundreds of lines of code with one line.

    As a finale, I’d like to invite you to join our ever-growing and friendly community of tech-professionals at Dev Hardware Forums. We focus on all areas of IT&C: hardware, software, consumer electronics, around-the-clock IT news and more. You might also want to check out the forums of our sister site at Dev Shed. Take care.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · Thanks for reading this article. Hopefully you've found it informative and...
     

    C# ARTICLES

    - Working with Dates and Times in C#
    - Generics, Dictionaries, and More
    - More About Generics
    - Working with C# Collections
    - Generics
    - C# and XML
    - Pointers and Arrays in C#
    - C# 3.0 Extension Methods
    - Overloading Operators in C#
    - Iterators and Nullable Types
    - Patterns and Iterators in C#
    - C# Exceptions
    - Methods in C#
    - Delegates and Events in C#
    - Advanced C#

     
    Best Practices for Windows Vista Migration Presentation
    Dell and Microsoft recently held a series of face-to-face seminars entitled, &qu....

     
    Creating a Culture for Code Reuse
    If you oversee development teams you know that like it or not proprietary and ex....

     
    Keys to Web Application Acceleration: Advances in Delivery Systems
    Accelerate Web apps by up to 5x. Ensure significantly faster access to the Web a....

     
    Optimizing Application Monitoring
    Tired of finding out from your customers that you're offline? This white paper e....

     
    Solaris to Solaris Migration -- Migrating applications from Sun SPARC to Dell PowerEdge R900
    This comprehensive Migration Guide reviews the approach that Principled Technolo....

     




    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT