Rob Chartier ~ Contemplation...

.NET, C#, Work, etc.

News






www.flickr.com
This is a Flickr badge showing public photos from Rob & Kat Chartier. Make your own badge here.


Even Quicker Links

Donate your Regular Expressions...

All regular expressions really boil down to is matching, searching, and replacing.

I've been looking for a good regular expression library which include some or all of these types and that are useful. 

Some methods would inlcude:

public static bool ValidEmail(string email);

public static MatchCollection FindEmails(string text);

public static MatchCollection FindLinks(string text);

etc.

If you have anything to offer, post a feedback or fire me an email via the "Contact" link to the left.  I will share my final library to all those that donate!

Thanks!

(Edit: Please only WORKING C# source -Thanks again!)

Posted: Jul 04 2005, 10:19 AM by Rob Chartier | with 5 comment(s)
Filed under:

Comments

Syed Aziz ur Rahman said:

There is a very good collection of regular expressions on http://www.regexlib.com. I have used severl from there. May be it will help you also. Try.
# July 5, 2005 1:36 AM

Jarno said:

I'm curious. Why ask for working C# only? Are you yourself unable to write C# code to match/search&replace something if you have the correct regex? Or are you just lazy?

And if you're just looking for the regexps themselves, there are tons of sites. Just two google hits that I found in ten seconds: http://www.regexlib.com/DisplayPatterns.aspx and http://www.regular-expressions.info/reference.html.

Finally, what's with the "share to all those that donate"? You are asking people on the internet (=everybody can read this) to send you their work in order to help you, the information you are looking for can be found freely on the internet already and you expect that people will send you something based on the fact that you will send them more of what they already have themselves (they already sent you something by that point).

My advice: simply google for the regex you think you need and be done with it.
# July 5, 2005 2:57 AM

Tommi said:

# July 5, 2005 3:06 AM

Rob Chartier said:

Jarno,

I only want C# examples because it is simply my preference. I would rather work in C# thus if you only have VB.NET source then you can ignore this request.

Lazy? Yes, I can admit to that. As a programmer I would rather scour the web to find source than to reproduce it on my own, and if justified even purchase it. And since I'am not getting much response to this request I will most likely code what I need on my own either way.

A big part of existing in a community (like this .NET one we co-exist in), is sharing. My request is simply out there to see if anyone is willing to share their work, not very unreasonable, is it? Yes I could google it, but as I said why reproduce when you can just share it.


Thanks for your feedback!
# July 5, 2005 7:01 PM

Scott C. Reynolds said:

Check out the validation library of NUtility. It has a bunch of different useful ones.

Also regexlib, which has been mentioned.
# July 20, 2005 10:56 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)