Patterns
Patterns copied to clipboard
Parsing code
Hi, I'm looking at Patterns to try and pass strings that contain small chunks of source code. I'm trying to work out if I can get it to pass a string that looks like this:
x = "abc"
The part I'm troubled with is the string declaration and I'm not sure if Patterns can handle a pattern where I need a double quote following by any number of characters and ending with a second double quote.
The value "abc"
seems pretty straight forwards. But what if it contains a double quote. i.e "a\"bc"
.