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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find C-Style Quoted String version 2
Expression
"(\\.|[^"])*"
Description
This time is for C-Style Quoted String matching. So to use " in the quoted string you need to use \" and if you wanted to use \ in your string, use \\.
Matches
"" "!" "Hello" "Es\"Cape" "Backslash \\"
Non-Matches
"Backslash\", "Unclosed
Author Rating: The rating for this expression. the DtTvB
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: Matches "Backslash\"
Name: Elmar
Date: 6/23/2008 7:47:50 AM
Comment:
It does match "Backslash\" (Regex Tester with the .NET engine). But it can be fixed by including the backslash in the character class: "(\\.|[^"\\])*"


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