/"(?:[^"\\]|\\.)*"/
Works in The Regex Coach and PCRE Workbench.
Example of test in JavaScript:
var s=" function(){ return " Is big \\"problem\\", \\no? "; }";
var m = s.match(/"(?:[^"\\]|\\.)*"/);
if (m != null)
alert(m);
More Related Contents:
- bash regex with quotes?
- Regex to match all instances not inside quotes
- Regex to split a CSV
- Escaping a forward slash in a regular expression
- Escape function for regular expression or LIKE patterns
- powershell: how to escape all regex characters from a string
- Finding quoted strings with escaped quotes in C# using a regular expression
- How can I match double-quoted strings with escaped double-quote characters?
- Grep and regex – why am I escaping curly braces?
- Reg-ex to validate a sting with digits only but all Zeros are not allowed [closed]
- Regular expression to match balanced parentheses
- Why doesn’t [01-12] range work as expected?
- Regular expression for a string containing one word but not another
- Regular expression that matches valid IPv6 addresses
- Escaping Double Quotes in Batch Script
- What is a regular expression for a MAC Address?
- How to use regex with find command?
- What is the best regular expression to check if a string is a valid URL?
- Check if a string matches a regex in Bash script
- Regular expression for matching latitude/longitude coordinates?
- Regex to disallow more than 1 dash consecutively
- Is it possible for a computer to “learn” a regular expression by user-provided examples?
- Regex, every non-alphanumeric character except white space or colon
- How .* (dot star) works? [closed]
- How do you extract IP addresses from files using a regex in a linux shell?
- Regular expression limit string size
- regex to remove ordinals
- Regular Expression Vs. String Parsing
- How to get Vim to highlight non-ascii characters?
- Does lookaround affect which languages can be matched by regular expressions?