TipsOnLips.net

Your .net tips and tricks source

About the author

Author Name is someone.
E-mail me Send mail

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010


Find a string match starting with a defind word (Basic Regular Expressions)

If we have string HelloWorld and we want the following:

1) Find the a match when the string Hello World starts with the word Hello on a condition the word World is attached to the word Hello.

    ^(?i:Hello) 

Where:

    ^             matches the beginning of a string or line.

    (             Starts a group.

    ?i:           Ignore Case.

    )             Close of group. 

 


Posted by developer on Wednesday, August 29, 2007 6:53 AM
Permalink | Comments (0) | Post RSSRSS comment feed