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 DtTvB
|
Source |
|
Your Rating |
|
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:
"(\\.|[^"\\])*"