regex to avoid escaped quotes or double quotes

Discussion in 'Ruby' started by jOhn, Jan 29, 2008.

  1. jOhn

    jOhn Guest

    [Note: parts of this message were removed to make it a legal post.]

    I am doing an xpath compiler.

    Biggest problem is how to ignore single and double quoted literals ... along
    with escaped quotes.

    Like the following (avoiding the quoted literal):

    /some/cool/xml/path[fn:count(subelement[@title
    ='fn:count("/some/cool/xml/path[fn:count(subelement[@title
    ='fn:count()'])]")'])]

    I'll post more as I work to solve it ... not even posting what i have now as
    it is too weak.

    -jhn
    jOhn, Jan 29, 2008
    #1
    1. Advertising

  2. jOhn

    Phlip Guest

    jOhn wrote:

    > I am doing an xpath compiler.


    > I'll post more as I work to solve it ... not even posting what i have now as
    > it is too weak.


    Have you raided Hpricot for "inspiration"?

    (Its XPath is weak but its parsing in general is excellent!)

    --
    Phlip
    Phlip, Jan 29, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris White

    Quotes/Double Quotes in Image Control

    Chris White, Sep 22, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    4,825
    Hermit Dave
    Sep 22, 2004
  2. Sydex
    Replies:
    12
    Views:
    6,431
    Victor Bazarov
    Feb 17, 2005
  3. Fernando Rodriguez
    Replies:
    5
    Views:
    386
    Roel Mathys
    Nov 20, 2003
  4. Jonny
    Replies:
    7
    Views:
    421
    Jonny
    Dec 20, 2005
  5. toralf
    Replies:
    5
    Views:
    155
    toralf
    Sep 14, 2009
Loading...

Share This Page