Q&A - Greedy matching in regular expressions

My blog has moved. You can view this post at the following address: http://www.osherove.com/blog/2005/1/10/qampa-greedy-matching-in-regular-expressions.html
Published Monday, January 10, 2005 7:37 PM by RoyOsherove
Filed under:

Comments

Monday, January 10, 2005 1:51 PM by Aaron Robinson

# re: Q&A - Greedy matching in regular expressions

Fore the case of wanting to match the quoted attributes, you should also be able to specify that the attribute value consists of any character that don't include the quotation mark, such that the closing quote (and subsequent opens and closes) aren't included:

\"[^\"]*\"


- Aaron