RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
foo
Description
The "hello world" of regular expressions, this will match any string with an instance of 'foo' in it.
Matches
foo
Non-Matches
bar
Author Rating: The rating for this expression. Steven Smith
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Eye-opener
Name: Erik
Date: 2/6/2004 6:08:28 AM
Comment:
Cool! I recently stumbled upon this regex when I was searching google on how to implement 'foo' and 'bar' into my application. Your regex really opened my eyes to the use of regular expressions for this. Thanx!


Title: You can learn stuff though
Name: Darren Neimke
Date: 1/22/2004 7:16:48 PM
Comment:
...even from Hello World! For example, to a beginner it might not be obvious that, this pattern can also be used to match against the text "football" and "afoot" :-)


Title: Re:??
Name: Michael Ash
Date: 1/22/2004 6:01:44 PM
Comment:
but if you don't know anything about regexs, it a good place to start.


Title: It was one of the first in the library
Name: Steven Smith
Date: 1/22/2004 5:48:18 PM
Comment:
I should probably delete this one, but I'm fine with it simply getting a terrible rating. It was, as should be obvious, just a test that the library was working, back before it had hundreds of useful regexes in it.


Title: ??
Name: Michael
Date: 1/22/2004 4:24:02 PM
Comment:
What are you doing, writing a tutorial to get your "contributor" count up? If you know anything about regex, you would know this!


Title: I can't believe
Name: eSa
Date: 11/17/2003 11:10:31 AM
Comment:
...it works!


Title: Waste of time
Name: sasha
Date: 8/4/2003 7:11:06 AM
Comment:
Very hard to make and extremely useful Regex LOL


Title: cool
Name: daniel
Date: 5/2/2003 11:59:34 AM
Comment:
well done dude, although it doesn't seem to match bar!


Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials