Google Answers Logo
View Question
Q: Regular Expressions ( Answered 5 out of 5 stars,   0 Comments )
Subject: Regular Expressions
Category: Computers > Programming
Asked by: timberline-ga
List Price: $2.00
Posted: 28 Jun 2006 09:41 PDT
Expires: 28 Jul 2006 09:41 PDT
Question ID: 741756
I'm look for RegEx syntax for find items in a list of urls
(logfiles)... where the url contains "lists." and then "market"
somewhere in the url.

Example Matches:
Subject: Re: Regular Expressions
Answered By: eiffel-ga on 28 Jun 2006 10:36 PDT
Rated:5 out of 5 stars
Hi timberline-ga,

This should match your URLs:


Note the backslash before the second dot. This makes the dot match a
dot character, instead of the dot being a metacharacter that matches
any character.

The asterisk means "zero or more times", so this regular expression
means "Match 'lists.' followed by zero or more characters followed by

If this doesn't work for you, let me know what language you're using.
Some languages have slight differences in the regular expressions that
they accept, although the regex above is pretty universal.


Additional Link:

Regular Expressions tutorial, examples and reference

Clarification of Answer by eiffel-ga on 29 Jun 2006 08:26 PDT
Hi timberline-ga,

Thanks for your kind comments.

Google Answers Researchers are not permitted to bypass the Google
Answers service to make direct contact with customers. You may, if you
wish, include the text "for eiffel-ga" in the subject line of your
future questions and I will answer them if possible.

However, I am not always available to work on Google Answers
questions, and there are other GA researchers available who also have
experience working with regular expressions who would be able to help
you with your questions if you so desire.

timberline-ga rated this answer:5 out of 5 stars
This was a very good answer to a simple question.  I would definitely
want to use this researcher again for other REGEX questions

There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  

Google Home - Answers FAQ - Terms of Service - Privacy Policy