grammatica-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Grammatica-users] Question about regular expressions involving quo


From: Per Cederberg
Subject: Re: [Grammatica-users] Question about regular expressions involving quoted strings
Date: Thu, 21 May 2009 10:55:30 +0200

Try experimenting on http://regexpal.com/

Here is one that I got to work:

<<"([^"\\]|""|\\.)*">>

Cheers,

/Per

On Tue, May 19, 2009 at 19:17, Andrew Smellie <address@hidden> wrote:
> Hi
>
>
>
> I am trying to write a regular expression that will parse a quoted string
>
>
>
> This is what I have so far:     QUOTEDSTRING = <<"([^"]|"")*+">>
>
>
>
> How can I modify this to allow double quotes inside the quoted string,
> perhaps denoted by an escape character? An example of such a string might
> be:
>
>
>
> "\"a quoted string\"" would be parsed to read "a quoted string"
>
>
>
> As an aside, I cast around for different parser generators and have found
> grammatica the easiest to use!
>
>
>
> Thanks
>
>
>
> Andrew
>
>
>
> _______________________________________________
> Grammatica-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/grammatica-users
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]